line = raw_input()
line = line.split(' ')
x = float(line[0])
y = float(line[1])
if x == 0.0 and y == 0.0:
    print('Origem')
elif x == 0.0:
    print('Eixo Y')
elif y == 0.0:
    print('Eixo X')
elif x > 0.0 and y > 0.0:
    print('Q1')
elif x < 0.0 and y > 0.0:
    print('Q2')
elif x < 0.0 and y < 0.0:
    print('Q3')
else:
    print('Q4')

87f0142c6cf267d1e8486e0c4056724a22481805
<mask token>

<mask token>
if x == 0.0 and y == 0.0:
    print('Origem')
elif x == 0.0:
    print('Eixo Y')
elif y == 0.0:
    print('Eixo X')
elif x > 0.0 and y > 0.0:
    print('Q1')
elif x < 0.0 and y > 0.0:
    print('Q2')
elif x < 0.0 and y < 0.0:
    print('Q3')
else:
    print('Q4')

line = raw_input()
line = line.split(' ')
x = float(line[0])
y = float(line[1])
if x == 0.0 and y == 0.0:
    print('Origem')
elif x == 0.0:
    print('Eixo Y')
elif y == 0.0:
    print('Eixo X')
elif x > 0.0 and y > 0.0:
    print('Q1')
elif x < 0.0 and y > 0.0:
    print('Q2')
elif x < 0.0 and y < 0.0:
    print('Q3')
else:
    print('Q4')
