n = float(input())
if n % 0.5:
    print(round(n))
else:
    print(int(n + 0.5))