A, B = map(int, input().split()) if A+B > A*B: X = 0 elif A+B < A*B: X = 1 else: X = 2 print('SPE'[X])