k = int(input()) n = 4 decompressed = [] nupc = ['N', 'U', 'P', 'C'] for i in range(2 ** n): tmp = "" for j in range(n): tmp += nupc[j] if i & (1 << j): tmp = tmp + tmp decompressed.append(tmp) decompressed.sort() print(decompressed[k - 1])