f = float(input())
a = int(f)
if f - a >= 0.5:
    print(a+1)
elif f - a < 0.5:
    print(a)