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