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