#include #include using namespace std; using i32 = int; using i64 = long long; using i128 = __int128_t; using f64 = double; using p2 = pair; using p3 = tuple; using mint = atcoder::modint998244353; constexpr i64 inf = 1e18; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(18); _main(); } void _main() { vector kcpc = { "#...#.#####", "#.##..#....", "##....#....", "#.##..#....", "#...#.#####", "...........", "####..#####", "#...#.#....", "####..#....", "#.....#....", "#.....#####" }; vector kupc = { "#...#.#...#", "#.##..#...#", "##....#...#", "#.##..#...#", "#...#.#####", "...........", "####..#####", "#...#.#....", "####..#....", "#.....#....", "#.....#####", }; i64 n; cin >> n; i64 k = n / 11; vector ss(n); for (i64 i = 0; i < n; i++) cin >> ss[i]; vector s(11, string(11, '.')); for (i64 i = 0; i < 11; i++) { for (i64 j = 0; j < 11; j++) { s[i][j] = ss[i * k][j * k]; } } if (ss == kcpc) { cout << "KCPC\n"; } else { cout << "KUPC\n"; } }