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