# 1041 - Coordinates of a Point
x = float(input())
y = float(input())

if x == 0 and y == 0 :
    print("Origem\n")
elif x > 0 and y > 0:
    print("Q1")
elif x < 0 and y > 0:
    print("Q2")
elif x < 0 and y < 0:
    print("Q3")
elif x > 0 and y < 0:
    print("Q4")
elif x == 0:
    print("Eixo X")
elif y == 0:
    print("Eixo Y")

print("")