X, Y = map(float, input().split(' '))

if (X > 0 and Y > 0):
    print('Q1')
elif (X > 0 and Y < 0):
    print('Q4')
elif (X < 0 and Y < 0):
    print('Q3')
elif (X < 0 and Y > 0):
    print('Q2')
elif (X == 0 and Y != 0):
    print('Eixo Y')
elif (Y == 0 and X != 0):
    print('Eixo X')
else:
    print('Origem')
