#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
double x,y;
cin >> x >> y;
if(x*y != 0){
if(x > 0 && y > 0){
cout << "Q1";
}else if(x > 0 && y < 0){
cout << "Q4";
}else if(x < 0 && y < 0){
cout << "Q3";
}else{
cout << "Q2";
}
}else{
if(x == 0){
if(y == 0){
cout << "Origem";
}else {
cout << "Eixo Y";
}
}else{
cout << "Eixo X";
}
}
return 0;
}