s = input().split(" ") if s[0][0] == '0' or s[1][0] == '0': print("S") elif s[0] == "2" and s[1] == "2": print("E") else: print("P")