a,b=map(int,input().split()) ad=a+b mul=a*b if ad>mul: print("S") elif ad==mul: print("E") else: print("P")