#include using namespace std; typedef long long ll; typedef string str; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); ll n; cin >> n; vector s(n); for (ll i = 0; i < n; i++) cin >> s[i]; ll k = n / 11; if (s[3 * k][10 * k] == '#') cout << "KUPC\n"; else cout << "KCPC\n"; return 0; }