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