#include using namespace std; using ll = long long; ll N; void solve(){ cin >> N; cout << (N == 1 ? "P\n" : "K\n"); } int main(void){ ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while(t--)solve(); return 0; }