x=input().split(' ') a=int(x[0]) b=int(x[1]) if a*b > a+b: print("P") if a*b == a+b: print("E") if a*b < a+b: print("S")