Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance between him and the girl to make his shot accurate. [Image] 

Barney asked the bar tender Carl about this distance value, but Carl was so busy talking to the customers so he wrote the distance value (it's a real number) on a napkin. The problem is that he wrote it in scientific notation. The scientific notation of some real number x is the notation of form AeB, where A is a real number and B is an integer and x = A × 10^{B} is true. In our case A is between 0 and 9 and B is non-negative.

Barney doesn't know anything about scientific notation (as well as anything scientific at all). So he asked you to tell him the distance value in usual decimal representation with minimal number of digits after the decimal point (and no decimal point if it is an integer). See the output format for better understanding.


-----Input-----

The first and only line of input contains a single string of form a.deb where a, d and b are integers and e is usual character 'e' (0 ≤ a ≤ 9, 0 ≤ d < 10^100, 0 ≤ b ≤ 100) — the scientific notation of the desired distance value.

a and b contain no leading zeros and d contains no trailing zeros (but may be equal to 0). Also, b can not be non-zero if a is zero.


-----Output-----

Print the only real number x (the desired distance value) in the only line in its decimal notation. 

Thus if x is an integer, print it's integer value without decimal part and decimal point and without leading zeroes. 

Otherwise print x in a form of p.q such that p is an integer that have no leading zeroes (but may be equal to zero), and q is an integer that have no trailing zeroes (and may not be equal to zero).


-----Examples-----
Input
8.549e2

Output
854.9

Input
8.549e3

Output
8549

Input
0.33e0

Output
0.33

Difficulty: interview

Starter code:

Solutions:
s = input()
a = str()
b = str()
f = False
for i in range(len(s)):
    if s[i] == 'e':
        f = True
    elif f:
        b = b + s[i]
    else:
        a = a + s[i]
pos = a.index('.')
n = int(b)
a = list(a)
for i in range(n):
    if pos == len(a) - 1:
        a.append('0')
    a[pos], a[pos + 1] = a[pos + 1], a[pos]
    pos += 1
if a[-1] == '.':
    a.pop()
if '.' in a:
    while a[-1] == '0':
        a.pop()
if a[-1] == '.':
    a.pop()
if '.' not in a:
    while len(a) > 1 and a[0] == '0':
        a.pop(0)
for i in range(len(a)):
    print(a[i], end = '')


a, b = input().split("e")
b = int(b)
c, d = a.split(".")
d += "0" * 500
ans = c + d[:int(b)] + "." + d[int(b):]
while ans[len(ans) - 1:] == "0":
    ans = ans[:len(ans) - 1]
if ans[len(ans) - 1:] == ".":
    ans = ans[:len(ans) - 1]
print(ans)


s = input()
b = int(s.split('e')[1])
s = s.split('e')[0]
a = s.split('.')[0]
d = s.split('.')[1]+'0'*101
a += d[:b]
d = d[b:]
i = 0
while i < len(a)-1 and a[i]=='0':
    i += 1
a = a[i:]
i = len(d)-1
while i>0 and d[i]=='0':
    i -= 1
d = d[:i+1]
if d == '0':
    print(a)
else:
    print(a+'.'+d)




from decimal import Decimal, getcontext

getcontext().prec = 250
s = "{:.250f}".format(Decimal(input()))

if '.' in s:
    while s[-1] == '0':
        s = s[:-1]
    if s[-1] == '.':
        s = s[:-1]

print(s)


p, q = input().split('e')
a, b = p.split('.')
b += '0' * 150
d = int(q)
a = (a + b[:d]).lstrip('0')
b = b[d:].rstrip('0')
if not a:
    a = '0'
print(a, end='')
if b:
    print('.' + b)
else:
    print()


from decimal import *

getcontext().prec = 128

xs = input()
xs = [x for x in xs.split("e")]
a = Decimal(xs[0])
b = 10 ** int(xs[1])
s = str(a * b)
i = len(s) - 1
while i > 0 and s[i] == '0':
    i = i - 1
if s[i] == '.':
    i = i -1
print(s[:i+1])


s = input()
fst = s[:s.index('e')]
to_move = int(s[s.index('e') + 1:])
curr = 0
while curr != to_move:
    if fst[-1] == '.':
        fst = fst[:-1] + '0.'
    else:
        prt = fst.split('.')
        fst = prt[0] + prt[1][0] + '.' + prt[1][1:]
    curr += 1
if fst[-1] == '.':
    fst = fst[:-1]
test = fst.split('.')
if len(test) != 1 and set(test[-1]) == {'0'}:
    fst = test[0]
print(fst)

#!/usr/bin/env python3
s = input()
a, s = s.split('.')
d, b = s.split('e')
for i in range(int(b)):
    d += '0'
    a += d[0]
    d = d[1:]
s = a + '.' + d
while s[0] == '0':
    s = s[1:]
while s[-1] == '0':
    s = s[:-1]
if s[-1] == '.':
    s = s[:-1]
if s == '' or s[0] == '.':
    s = '0' + s
print(s)


s = input();
l1 = s.find(".")
l2 = s.find("e")

a = s[0:l1]+s[l1+1:l2]
b = int(s[l2+1:len(s)])

for i in range(100):
    a += "0"

a = a[0:l1+b]+"."+a[l1+b:len(a)]

while a[-1] == "0":
    a = a[0:-1]
    
if(a[-1] == "."):
    a = a[0:-1]

print(a)

import sys

line = sys.stdin.readline()
a, deb = line.split(".")
d,b = deb.split("e")

if d=="0": d=""

b=int(b)

#if (a=="0"):
#	a=d[0]
#	d=d[1:]
#	b=b-1


p1 = d[0:b]
if len(p1) < b:
	p1 = p1 + "0"*(b-len(p1))

p2 = d[b:]

print(a+p1+("."+p2 if p2!="" else ""))


s = input()
a = s[0]
s = s[2:]
b = s[:s.find('e')]
d = int(s[s.find('e') + 1:])

s = ''

if d < 0:
    s = '0.' + a
    d -= 1
    s += '0' * -d
    d = 0
    s += b

else:
    s = a
    while d > 0:
        s += b[0]
        b = b[1:] + '0'
        d -= 1
    s += '.' + b

while len(s) and s[0] == '0':
    s = s[1:]
s = s[::-1]
while len(s) and s[0] == '0':
    s = s[1:]
s = s[::-1]

if s[0] == '.':
    s = '0' + s

if s[-1] == '.':
    s = s[:-1]

print(s)


def main():
    A, B = input().split('e')
    B = int(B)
    s1, s2 = A.split('.')
    if B == 0:
        if s2 == '0':
            print(s1)
        else:
            print(A)
        return
    print(s1, end='')
    for i in range(B):
        if i < len(s2):
            print(s2[i], end='')
        else:
            print(0, end='')
    s2 = s2[i+1:]
    if s2:
        print('.' + s2)

main()
    


line = input()
s = ''
k = len(line)
while line[k-1]!='e':
	s = line[k-1]+s
	k = k-1
line1 = list(line[:k-1])
b = int(s)
for i in range(0, len(line1)):
	if line1[i]=='.':
		line1.pop(i)
		j = i+b
		if j<=len(line1):
			line1.insert(j, '.')
			u = len(line1)-1
			dif = 0
			while u>j and line[u]=='0':
				line1.pop()
				u -= 1
		else:
			dif = j-len(line1)
			line1 = line1 + ['0']*dif
		break
if line1[-1]=='.':
	line1.pop()
print (''.join(y for y in line1))

S = input()

A, B = S.split('e')

a1, a2 = A.split('.')
s1, s2 = a1[:]+a2[:int(B)], a2[int(B):]

while len(s1+s2) < int(B)+1:
    s1 = s1+'0'

if len(s2) == 0 or int(s2) == 0:
    print(s1)
else:
    print(s1+'.'+s2)


a, deb = input().split('.')
d, b = deb.split('e')
b = int(b)
if b < len(d):
    number = "{}{}.{}".format(a, d[:b], d[b:])
    number = number.strip('0')
    if number[0] == '.':
        number = "0{}".format(number)
    if number[-1] == '.':
        number = number[:-1]
else:
    number = "{}{}{}".format(a, d, '0' * (b - len(d)))
    number = number.lstrip('0')
    if not number:
        number = '0'
print(number)


inp = input()
a, inp = inp.split('.')
d, b = inp.split('e')
b = int(b)

whole = a + d

ans = ''
if b >= len(d):
	ans = d + '0' * (b - len(d))

	if a != '0':
		ans = a + ans
else:
	#ans = a + d[:b] + '.' + d[b:]
	
	ans = a + d[:b]
	if (len(ans) > 1) and (ans[0] == '0'):
		ans = d[:b]

	if d[b:] != '0':
		ans += '.' + d[b:]



print(ans)




calcul=input()
n=len(calcul)
e=None
for i in range(n):
        if calcul[i]=="e":
                e=i
a=calcul[0]
d=calcul[2:e]
b=int(calcul[e+1:])

if d=="0":
        d=""

if len(d)==b:
        resultat=a+d
elif b>len(d):
        nombreZero=b-len(d)
        resultat=a+d+"0"*nombreZero
else:
        add=a+d
        virgule=b-len(d)
        resultat=add[:virgule]+"."+add[virgule:]

        inf=0
        sup=len(resultat)-1
        while resultat[inf]=="0" and sup>inf:
                inf+=1
        while resultat[sup]=="0" and sup>inf:
                sup-=1
        if resultat[inf]==".":
                resultat="0"+resultat[inf:sup+1]
        else:
                resultat=resultat[inf:sup+1]
        
print(resultat)





        


s=input()
a,temp=s.split('.')
d,b=temp.split('e')
bb=int(b)
if(a=='0'):
    if(d!='0'):
        print(a,end='.')
        print(d)
    else:
        print(0)
elif(bb==0):
    if(d!='0'):
        print(a,end='.')
        print(d)
    else:
        print(a)
else:
    if(d=='0'):
        print(a,end='')
        for i in range(bb):
            print('0',end='')
    else:
        l=len(d)
        if(l<=bb):
            print(a,end='')
            print(d,end='')
            temp2=bb-l
            for i in range(temp2):
                print('0',end='')
        else:
            print(a,end='')
            for k in range(bb):
                print(d[k],end='')
            k+=1
            print('.',end='')
            print(d[k::])


split_by_dot = input().split('.')
split_by_e = split_by_dot[1].split('e')

a = split_by_dot[0]
d = split_by_e[0]
b = int(split_by_e[1])

# decimals = len(d)

# if a == '0' and d == '0':
# 	print('0')
# elif d == '0':
# 	print(a, '0'*b, sep='')
# elif b < decimals:
# 	print(a, d[:b], '.', d[b:], sep='')
# else:
# 	print(a, d, '0'*(b-decimals), sep='')


# 0.0eX => 0
# 0.012e1 => 0.12
# 0.012e3 => 1.2
# 0.012e4 => 12
# 4.0e0 => 4

D = d.lstrip('0')
decimals = len(d)

if a == '0':
	if d == '0':
		print('0')
	elif b < decimals:
		integer_part = '0' if b == 0 else d[:b-1].lstrip('0') + d[b-1]
		decimal_part = d[b:]
		print(integer_part, '.', decimal_part, sep='')
	else:
		print(d.lstrip('0'), '0'*(b-decimals), sep='')
else: # a > 0
	if d == '0':
		print(a, '0'*b, sep='')
	elif b < decimals:
		print(a, d[:b], '.', d[b:], sep='')
	else:
		print(a, d, '0'*(b-decimals), sep='')

s = input()
l = len(s)
(a,b,d) = (-1,-1,-1)
ae = 0

for i in range(l):
	if s[i] == '.':
		a = s[:i]
		ae = i
	elif s[i] == 'e':
		b = s[ae+1:i]
		d = int(s[i+1:])

if len(b) <= d:
	ans = int(a + b + "0"*(d-len(b)))
	print(ans)
else:
	ans = a + b[:d]
	flag = True
	for c in b[d:]:
		if c != '0':
			flag = False
	if not flag:
		ans += "." + b[d:]
		
		
	print(ans)


from math import modf
s = input()
i = 0
while s[i] != 'e':
    i += 1
a = s[0:i]
b = int(s[i+1:])
i = 0
while s[i] != '.':
    i += 1
a2 = a[i+1:]
a = a[0:i]

i = 0
while b > 0 and i < len(a2):
    a += a2[i]
    i += 1
    b -= 1
if b > 0:
    while b > 0:
        a += '0'
        b -= 1
elif i < len(a2):
    a2 = a2[i:]
    a3 = ''
    i = len(a2)-1
    k = 0
    while i > -1:
        if a2[i] != '0' and k == 0:
            k = 1
            a3 = a2[i] + a3
        elif k!= 0:
            a3 = a2[i] + a3
        i -= 1
    if len(a3) != 0:
        a += '.'
        for i in range(len(a3)):
            a += a3[i]

print(a)


from sys import stdin, stdout
value, power = stdin.readline().split('e')
ans = value[:value.index('.')] + value[value.index('.') + 1: min(len(value), value.index('.') + int(power) + 1)]
if len(value) <= value.index('.') + int(power) + 1:
    ans += '0' * (int(power) - len(value[value.index('.') + 1:]))
else:
    ans += '.' + value[value.index('.') + int(power) + 1:]

if ans.count('.'):
    u, r = ans.split('.')
    if r.count('0') != len(r):
        ans = str(int(u)) + '.' + r
    else:
        ans = str(int(u))
else:
    ans = str(int(ans))
stdout.write(ans)

#CodeforcesB.py
leer = input()
leer = leer.split("e")
listo = 0
# Despues de la e
numero = int(leer[1])

# Antes del punto 
valor = leer[0]
valor = valor.split(".")

if len(valor[1]) < numero:
	tamIni = len(valor[1])
	for i in range(0,numero-tamIni):
		valor[1]+="0"

aux = valor[1][0:numero]
aux2 = valor[1][numero:len(valor[1])]

for i in range(0,len(aux2)):
	if aux2[i] == "0":
		Cero = True
	else:
		Cero = False
		break  

if aux2:
	if Cero == False:
		resultado = str(valor[0])+str(aux)+"."+str(aux2)
	else:
		resultado = str(valor[0])+str(aux)
else:
	resultado = str(valor[0])+str(aux)

for i in range(0,len(resultado)):
	if resultado[i] == "0":
		Cero = True
	else:
		Cero = False
		break  

if Cero == True:
	print("0")
else:
	print(resultado)


s=input()
ind=s.find('e')
d=int(s[ind+1:])
z=s.find('.')
a=s[:z]
b=s[z+1:ind]
ans=a
for k in range(d):
    if len(b)<=k:
        ans+='0'
    else:
        ans+=b[k]


if d<len(b):
    ans+='.'
    ans+=b[d:]

i1=ans.find('.')
bo=True
if i1==-1:
    bo=False
    ans1=ans
else:
    ans1=ans[:i1]
    ans2=ans[i1+1:]


def cl1(ans1):

    k=0
    while k<len(ans1)-1:
        
        if ans1[k]!='0':
       
            break
        else:
            ans1=ans1[k+1:]
            
        
    if ans1==None:
        ans1=0
    return ans1


def cl2(ans2):
    for i in range(len(ans2)):
        k=ans2[i:]
        if k.count('0')==len(k):
            ans2=ans2[:i]
            break
    return ans2
if bo:
    
    ans1=cl1(ans1)
    ans2=cl2(ans2)
    total=ans1+'.'+ans2
    if total.endswith('.'):
        print(total[:-1])
    else:
        print(total)
else:
    
    print(cl1(ans1))


__author__ = 'Utena'
b1,c=input().split('e')
a,b=b1.split('.')
c=int(c)
if a=='0'and b=='0':
    print(0)
    return
if b=='0':
    b=''
if len(b)<=c:
    print(a+b+'0'*(c-len(b)))
else:
    print(a+b[:c]+'.'+b[c:])