while True: try: n = float(input()) if n - int(n) >= 0.5: print(int(n)+1) else: print(int(n)) except: break