#include #include int main(void){ char A[201]; char B[201]; scanf("%s %s",A,B); // If A or B is "1" or "0", the answer is "S" // If A and B is "2", the answer is "E" // else the answer is "P" if(((strcmp(A,"2") == 0)&&(strcmp(B,"2") == 0))||((strcmp(A,"0") == 0)&&(strcmp(B,"0") == 0))){ printf("E\n"); }else if((strcmp(A,"0") == 0)||(strcmp(B,"0") == 0)||(strcmp(A,"1") == 0)||(strcmp(B,"1") == 0)){ printf("S\n"); }else{ printf("P\n"); } return 0; }