#include int main(void) { unsigned A, B; scanf("%d %d", &A, &B); if (A == B && A == 2||A==0) { printf("E"); }else if(A==0||B==0||A==1||B==1){ printf("S"); }else { printf("P"); } }