A, B = map(int, input().split()) S = A + B P = A * B print('ESP'[(S < P) + (S != P)])