A, B = map(int, input().split())
sum, prod = A + B, A * B
print("S" if sum > prod else "P" if prod > sum else "E")