4662: Exponential notation

内存限制:256 MB 时间限制:2 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:2 通过:2

题目描述

C. Exponential notation


C.指数符号

每次测试的时间限制

2秒

每次测试的内存限制

256字节

输入

标准输入

输出

标准输出

已知一个正的十进制数x。

你的任务是把它转换成“简单指数符号”。

设x=a·10b,其中1≤a<10,则一般情况下“简单指数符号”类似于“aEb”。如果b等于零,则应跳过“Eb”部分。如果a是整数,则不应写成小数点。在a和b中不应该有额外的0。

输入

唯一的一行包含正小数x,该行的长度不会超过106。请注意,给定的数字太大,因此不能使用标准内置数据类型“float”,“double”和其他。

输出

打印唯一一行-给定数字x的“简单指数符号”。

time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

You are given a positive decimal number x.
Your task is to convert it to the "simple exponential notation".
Let x=a·10b, where 1≤a<10, then in general case the "simple exponential notation" looks like "aEb". If b equals to zero, the part "Eb" should be skipped. If a is an integer, it should be written without decimal point. Also there should not be extra zeroes in a and b.
Input
The only line contains the positive decimal number x. The length of the line will not exceed 106. Note that you are given too large number, so you can't use standard built-in data types "float", "double" and other.
Output
Print the only line − the "simple exponential notation" of the given number x.
Examples
Input
16
Output
1.6E1
Input
01.23400
Output
1.234
Input
.100
Output
1E-1
Input
100.
Output
1E2

输入样例 复制


输出样例 复制