ers=int(input()) eris=[input().rstrip() for _ in range(ers)] zrt=ers//11 print("KCPC" if eris[zrt][ers-1]=='.' else "KUPC")