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