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