#include int main(){ int a, b; scanf("%d%d", &a, &b); if(a+b > a*b) printf("S"); if(a+b < a*b) printf("P"); if(a+b == a*b) printf("E"); return 0; }