#include #define int ll using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define rng(i,c,n) for(int i=c;i #define _49vEjP0 ios::sync_with_stdio(0),cin.tie(0); typedef long long ll; typedef vector vi; typedef pair pii; void print(){cout<<'\n';} template void print(const h&v,const t&...u){cout< dp; auto f=[&](auto self,int x,int dep=0)->int{ if(dep>5) return 0; if(dp.find(x)!=dp.end()) return dp[x]; for(int i=2;i>n; if(ask(n)){ cout<<"K\n"; }else{ cout<<"P\n"; } } signed main(){ _49vEjP0; int __t; cin>>__t; rep(cs,__t){ slv(); } // slv(); }