N, K = map(int,input().split()) if N+K > N*K: x = 0 elif N+K < N*K: x = 1 else: x = 2 print(['S', 'P', 'E'][x])