a, b = gets.split.map(&:to_i) puts case a + b <=> a * b when -1 then 'P' when 0 then 'E' when 1 then 'S' end