a, b = map(int,input().split()) s = a + b p = a * b print('ESP'[(s != p) + (s < p)])