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