n=float(input())
if(n>0):
    m=n+0.5
    t=int(m)
    print(t)
else:
    m1=n-0.5
    t1=int(m1)
    print(t1)