while 1:a,b=raw_input().split(".");print(b>="5")+int(a)