Exponential notation

题意翻译

给定一个长度为N的数字,转化为 标准的科学计数法形式。N最大可达1e6。要考虑前置0 和 后置 0 的特殊情况。 当指数为0的时候,不输出指数部分。 感谢@liyifeng 提供的翻译

题目描述

You are given a positive decimal number $ x $ . Your task is to convert it to the "simple exponential notation". Let $ x=a·10^{b} $ , 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 $ .

输入输出格式

输入格式


The only line contains the positive decimal number $ x $ . The length of the line will not exceed $ 10^{6} $ . Note that you are given too large number, so you can't use standard built-in data types "float", "double" and other.

输出格式


Print the only line — the "simple exponential notation" of the given number $ x $ .

输入输出样例

输入样例 #1

16

输出样例 #1

1.6E1

输入样例 #2

01.23400

输出样例 #2

1.234

输入样例 #3

.100

输出样例 #3

1E-1

输入样例 #4

100.

输出样例 #4

1E2