/* -*- coding: utf-8 -*- * * 3556.cc: No.3556 KCPC or KUPC - yukicoder */ #include #include using namespace std; /* constant */ const int H = 11; const int W = 11; const int MAX_K = 10; const int MAX_N = H * MAX_K; const int MAX_M = W * MAX_K; /* typedef */ /* global variables */ char ss[MAX_N][MAX_M + 4]; /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%s", ss[i]); int k = n / H; if (ss[0][k * 7] == '#') puts("KCPC"); else puts("KUPC"); return 0; }