num = float(input())
if (int(num)+1 - num) > 0.5:
    print(int(num))
else:
    print(int(num)+1)