import math v = float(input()) v_up = math.ceil(v) v_lo = int(v) if v_up-v <= v-v_lo: print(v_up) else: print(v_lo)