#coding:UTF-8
import sys
import math
def calc(num):
if (num <0):
sign ="-"
else:
sign =""
if(-1<num<1):
anum = int(abs(num)*1000)
if( anum % 10 >=5):
bnum = int(abs(num)*100+1)
else:
bnum = int(abs(num)*100)
if (anum ==495):
return(sign+"0.49")
elif (anum == 995):
if (num >0 ):
return(sign+"0.99")
else:
return (sign +"1.00")
elif(bnum>=100):
return(sign+"1.00")
elif(bnum>=10):
return(sign + "0." +str(bnum))
elif(bnum>=1):
return(sign + "0.0" + str(bnum))
else:
return("0.00")
else:
tnum = int(abs(num)*1000+5)
ltnum = len (str(tnum))
stnum = str(tnum)
if (num>=0):
return (stnum[:ltnum-3]+"."+stnum[-3:-1])
else:
return ("-"+stnum[:ltnum-3]+"."+stnum[-3:-1])
sIN=sys.stdin.readline()
while(sIN != ""):
sIN = sIN.replace("\r","").replace("\n","")
print(calc(float(sIN)))
sIN=sys.stdin.readline()