省流直观型

a=float(input())
print(a if a-int(a)<0.5 else int(a)+1)

极速省流型

print(int(float(input())+0.5))