from math import ceil,floor n=float(input()) intnum=int(n) if n-intnum>=0.5: n=ceil(n) else: n=floor(n) print(n)