a,b=map(int,input().split()) m=a*b p=a+b if m>p: print("P") elif m