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:
#############<------------  Xorcestor_X ---------------->############

from math import *


def is_even(p):
    n=len(p)
    count=0
    for i in range(n):
        index=p.index(i,i,n)
        if i==index:
            pass
        else:
            count+=1
            temp=p[i]
            p[i]=p[index]
            p[index]=temp
    # print(p)
    if count%2==0:
        return True
    else:
        return False



prime=[]

def SieveOfEratosthenes():
    global prime
    prime=[1]*2000010
    prime[1]=0
    p=2
    while p*p<=2000001:
        if prime[p]:
            for i in range(p*p,2000002,p):
                prime[i]=0

lpf=[]

def precompute():
    global lpf
    lpf=[0]*1000001
    for i in range(2,1000001):
        if not lpf[i]:
            for j in range(i,1000001,i):
                if not lpf[j]:
                    lpf[j]=i


def binpow(a,b):
    res=1
    while b>0:
        if b&1:
            res*=a
        a*=a
        b>>=1
    return res


def modpow(a,b,x):
    res=1
    while b>0:
        if b&1:
            res*=a
            res%=x
        a*=a
        a%=x
        b>>=1
    return res

cont=[]

def f(x):
    global cont
    total=0
    for i in cont:
        total+=abs(i-x)
    return total


def bs(low,high,target):
    while low+3<high:
        mid=(low+high)/2
        if arr[mid]<target:
            low=mid
        else:
            high=mid-1
    for i in range(high,low-1,-1):
        if arr[o]<target:
            return i
    return -1


def ternary_search(l,r):
    while r-l>10:
        m1=l+(r-l)/3
        m2=r-(r-l)/3
        f1=f(m1)
        f2=f(m2)
        if f1>f2:
            l=m1
        else:
            r=m2

    mino=f(l)

    for i in range(l,r+1):
        mino=min(mino,f(i))

    return mino
s=input()
s=s.replace('0',' ')
s=s.lstrip()
s=s.replace(' ','0')
l=s.find('.')
if l==-1:
    sz=len(s)
    tr=s[0]+'.'+s[1:]
    tr=tr.replace('0',' ')
    tr=tr.rstrip()
    tr=tr.replace(' ','0')
    if tr[-1]=='.':
        tr=tr[0:-1]
    if sz==1:
        print(tr)
    else:
        tr+="E"+str(sz-1)
        print(tr)
else:
    if l==0:
        s=s[1:]
        sz=len(s)
        s=s.replace('0',' ')
        s=s.lstrip()
        s=s.replace(' ','0')
        new_sz=len(s)
        counter=-1
        counter-=(sz-new_sz)
        s=s.replace('0',' ')
        s=s.rstrip()
        s=s.replace(' ','0')
        tr=s[0]+'.'+s[1:]
        if tr[-1]=='.':
            tr=tr[0:-1]
        tr+="E"+str(counter)
        print(tr)
    else:
        diff=l-1
        s=s.replace('0',' ')
        s=s.rstrip()
        s=s.replace(' ','0')
        if diff==0:
            if s[-1]==".":
                s=s[0:-1]
            print(s)
        else:
            tr=s[0]+"."+s[1:l]+s[l+1:]
            tr=tr.replace('0',' ')
            tr=tr.rstrip()
            tr=tr.replace(' ','0')
            if tr[-1]=='.':
                tr=tr[0:-1]
            tr+="E"+str(diff)
            print(tr)