N, K = map(int,input().split()) if N+K > N*K: print("S") elif N+K < N*K: print("P") else: print("E")