#include <iostream>
using namespace std;
int check(double x, double y){
if(x > 0 && y > 0) return 1;
if(x < 0 && y > 0) return 2;
if(x < 0 && y < 0) return 3;
if(x > 0 && y < 0) return 4;
}
int main(){
double x, y; cin >> x >> y;
if(x == 0 && y == 0) cout << "Origem" << endl;
else if(x == 0) cout << "Eixo Y" << endl;
else if(y == 0) cout << "Eixo X" << endl;
else printf("Q%d\n", check(x, y));
return 0;
}