Problem: 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

Solution (in PYTHON3):

Solution:
import sys
import bisect
from bisect import bisect_left as lb
input_=lambda: sys.stdin.readline().strip("\r\n")
from math import log
from math import gcd
from math import atan2,acos
from random import randint
sa=lambda :input_()
sb=lambda:int(input_())
sc=lambda:input_().split()
sd=lambda:list(map(int,input_().split()))
sflo=lambda:list(map(float,input_().split()))
se=lambda:float(input_())
sf=lambda:list(input_())
flsh=lambda: sys.stdout.flush()
#sys.setrecursionlimit(10**6)
mod=10**9+7
mod1=998244353
gp=[]
cost=[]
dp=[]
mx=[]
ans1=[]
ans2=[]
special=[]
specnode=[]
a=0
kthpar=[]
def dfs(root,par):
    if par!=-1:
        dp[root]=dp[par]+1
    for i in range(1,20):
        if kthpar[root][i-1]!=-1:
            kthpar[root][i]=kthpar[kthpar[root][i-1]][i-1]
    for child in gp[root]:
        if child==par:continue
        kthpar[child][0]=root
        dfs(child,root)
ans=0
def hnbhai(tc):
    s=sa()+"."
    a,b=s.split(".")[:2]
    i=0
    while(i<len(a) and a[i]=="0"):
        i+=1
    a=a[i:]
    i=len(b)-1
    while(i>=0 and b[i]=="0"):
        i-=1
    b=b[:i+1]
    a1=len(a)-1
    if len(b)==0:
        i=len(a)-1
        while(i>=0 and a[i]=="0"):
            i-=1
        a=a[:i+1]
    if len(a)==0:
        a1=len(b)+1
        i=0
        while(i<len(b) and b[i]=="0"):
            i+=1
        b=b[i:]
        a1=len(b)-a1
    ans=a+b
    if len(ans)>1:
        ans=ans[0]+"."+ans[1:]
    if a1!=0 and ans:
        print(ans+"E"+str(a1))
        return
    print(ans)
for _ in range(1):
    hnbhai(_+1)