#include int main(void){ long a,b; scanf("%ld%ld",&a,&b); if(a+b==a*b) printf("E"); else printf(a+b>a*b?"S":"P"); }