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