#include using namespace std; int main() { // your code goes here long long a,b; cin>>a>>b; if(a>3)a=3; if(b>3)b=3; if(a*b>a+b) cout<<"P"<