n = float(input().strip())
n_int = int(n)

if (n - n_int) < 0.5:
    print(n_int)
else:
    print(n_int + 1)