A,B = map(int,input().split()) r = A + B s = A * B if r < s: print('P') elif r == s: print('E') else: print('S')