X = list(map(int,input().split())) wa = X[0] + X[1] seki = X[0] * X[1] if wa > seki: print("S") elif seki > wa: print("P") else: print("E")