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 PYTHON):

Solution:
def problem_2016_1C_A():
    t=int(raw_input())
    for case in range(1,t+1):
        n=int(raw_input())
        senate=[int(item) for item in (raw_input().split())]
        senate = sorted([(senate[i], chr(65+i)) for i in range(len(senate))], reverse=True)
        ans=''
        while not senate[0][0]==0:
            ans=ans+senate[0][1]
            senate[0]=(senate[0][0]-1, senate[0][1])
            senate=sorted(senate, reverse=True)
        L = len(ans)
        ans=[ans[2*i:2*i+2] for i in range(0, L/2-1)] + ([ans[L-3], ans[L-2:L]] if L%2==1 else [ans[L-2:L]])
        print 'Case #'+str(case)+':',
        for item in ans:
            print item,
        print ''

def problem_2016_1C_B_small():
    t=int(raw_input())
    for case in range(1,t+1):
        b,m=[int(item) for item in (raw_input().split())] 
        print m,b

def problem_2016_1C_C():
    pass


def problem_C():
    s=raw_input()
    p = 0
    n = len(s)
    while p < n:
        if s[p] == '.':
            break
        p=p+1
    s = s[:p]+s[p+1:]
    n=len(s)
    beg=0
    while beg<n and s[beg]=='0':
        beg=beg+1
    e=n
    while e-1>=0 and s[e-1]=='0':
        e=e-1
    s = s[beg:e]
    #print s
    #print beg,e
    b = p-beg-1
    r = s
    if e-beg > 1:
        r = r[0]+'.'+r[1:]

    if b:
        r=r+'E'+str(b)
    print r
        
    
    


def main():
    problem_C()
    
if __name__ == '__main__':
    main()