num = float(input())
if num < 0:
print("Negative")
elif num > 0:
print("Positive")
else:
print("Zero")
num = float(input())
if num < 0:
print("Negative")
elif num > 0:
print("Positive")
else:
print("Zero")