a, b=gets.split.map(&:to_i) Seki=a*b Wa=a+b if Seki>Wa then puts "P" elsif Seki