N = int(input()) S = [list(input()) for _ in range(N)] K = N//11 if S[0][N-1-K] == '#': print("KCPC") else: print("KUPC")