N = int(input()) S = [input() for _ in range(N)] print("KCPC" if S[N//11][-1] == "." else "KUPC")