#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin>>T; while(T--) { int N; cin>>N; cout<<(N==1?'P':'K')<<'\n'; } }