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