A,B=input().split() if A=="0" and B=="0": print("E") elif A=="0" or B=="0": print("S") elif A=="1" or B=="1": print("S") elif A=="2" and B=="2": print("E") else: print("P")