#include <stdio.h>

int main() {
    int X, Y;
    scanf("%d", &X);
    scanf("%d", &Y);
    if(X>0 && Y>0){
        printf("Q1");
    }
    else if(X<0 && Y>0){
        printf("Q2");
    }
    else if(X<0 && Y<0){
        printf("Q3");
    }
    else if(X>0 && Y<0){
        printf("Q4");
    }
    else{
        printf("eixos");
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: