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