while True: try: n=float(input()) if n==0: print('0.5') elif n>0: print('1') else: print('0') except: break