#include using namespace std; int main(){ long long N,input; cin >> N; for(long long i=0;i> input; if(input == 1){ cout << "P" << endl; } else { cout << "K" << endl; } } }