a = gets.to_i b = gets.to_i SUM1 = a + b SUM2 = a * b if SUM1 > SUM2 puts "S" elsif SUM2 > SUM1 puts "P" elsif SUM1 == SUM2 puts "E" end