A,B = map(int,input().split()) if A==0 and B ==0: print('E') elif A<=1 or B<=1: print('S') elif A==2 and B==2: print('E') else: print('P')