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