#include main(){ double A,B; scanf("%lf%lf",&A,&B); printf("%c\n",A*B==A+B?'E':A*B>A+B?'P':'S'); }