a,b=map(int,input().split())
s=a+b
p=a*b
print([["S","P"][s<p],"E"][s==p])