#include int main(void) { unsigned long long a; unsigned long long b; unsigned long long r; unsigned long long w; scanf("%lld%lld",&a,&b); r=a+b; w=a*b; if(r>w){ printf("S"); }else if(w>r){ printf("P"); }else if(w==r){ printf("E"); } return 0; }