while 1: try: t = int(input()) if t > 0: print(1) elif t == 0: print(1/2) else: print(0) except: break