a = input()
b = a.split('.')
if int(b[1][0])>=5:
    print(int(b[0])+1)
else:
    print(int(b[0]))