a,b = gets.split.map(&:to_i) if 3<=a && 3<=b puts "P" elsif a==2 && b==2 puts "E" else puts "S" end