import math
while True:
try:
n = float(input())
if n % 1 == 0.5:
print(math.ceil(n))
else:
print(round(n))
except:
break
import math
while True:
try:
n = float(input())
if n % 1 == 0.5:
print(math.ceil(n))
else:
print(round(n))
except:
break