#include using namespace std; int main(void){ long a,b; cin>>a>>b; if(a>1 && b>1){ cout<<"P"<