#include #include int main(void) { char a[201], b[201]; scanf("%s", a); //printf("%s\n", a); scanf("%s", b); //printf("%s\n",b); if(strcmp(a, "0") == 0 && strcmp(b, "0") == 0){ printf("E\n"); } else if(strcmp(a, "0") == 0 || strcmp(b, "0") == 0){ printf("S\n"); } else if(strcmp(a, "1") == 0 || strcmp(b, "1") == 0){ printf("S\n"); } else if(strcmp(a, "2") == 0 && strcmp(b, "2") == 0){ printf("E"); } else{ printf("P\n"); } return 0; }