K = int(input()) ans = [] S = 'NUPC' for i in range(2**4): tmp = '' for j in range(4): tmp += S[j] if i & 1<