a, b = (int(i) for i in input().split())

s = a + b
p = a * b

if s > p:
    print("S")
elif p > s:
    print("P")
else:
    print("E")