x,y=map(int,input().split()) if x*y>x+y: print("P") elif x*y