import re
text=input()
fir,text=text[0],text[1:]
if re.match(r'\d+(\.)\d+(E\+)\d+',text):
text=text.split('E+')
text3=text[0].split('.')
a=int(text[-1])
if len(text3[-1])>a:
text3[-1]=list(text3[-1])
text3[-1].insert(a,'.')
text3[-1]=''.join(text3[-1])
text[0]=text3[0]+text3[-1]
elif len(text3[-1])==a:
text[0]=text3[0]+text3[-1]
else:
a=a-len(text3[-1])
for p in range(a):
text3[-1]=text3[-1]+'0'
text[0]=text3[0]+text3[-1]
elif re.match(r'\d+(\.)\d+(E\-)\d+',text):
text=text.replace('.','')
number=''
text=text.split('E-')
a=int(text[-1])-1
for p in range(a):
number+='0'
text[0]='0.'+number+text[0]
if fir=='+':
print(text[0])
else:
print('-'+text[0])
逻辑稍微复杂…其他没什么好说的