#include using namespace std; using ll = long long; using pii = pair; using vi = vector; using vll = vector; using vvi = vector; using vs = vector; using vc = vector; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(a) (a).begin(), (a).end() template using min_pq = priority_queue, greater>; const int INF = 1e9; const ll LINF = 1e18; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); bool ok=true; int n; cin >> n; int time=n/11; vs data(n); rep(i,n) cin >> data[i]; ll cnt=0; for(char c:data[0]) if(c=='#') cnt++; if(cnt==4*time) cout << "KUPC" << endl; else cout << "KCPC" << endl; }