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