instr = input().split(' ') if len(instr) != 2: print('# of input params must be 2') exit -1 try: arg1 = int(instr[0]) arg2 = int(instr[1]) except: print('Input error') exit -1 s = arg1 + arg2 p = arg1 * arg2 if s > p: print('S') elif s < p: print('P') else: print('E')