#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T;cin>>T; for(;T--;) { int N; string S; cin>>N>>S; int K=0,P=0,KP=0; for(int i=0;iP?"K\n":"P\n"); else cout<<"K\n"; } }