import sys

input_date = sys.stdin.read().strip()

num = float(input_date) 
intnum = int(num)

if num - intnum >= 0.5:
    print(intnum+1)
else:
    print(intnum)