ans = [] NUPC = "NUPC" for s in range(16): temp = [] for i in range(4): temp.append(NUPC[i]) if (s >> i) & 1: temp = temp + temp ans.append("".join(temp)) ans.sort() K = int(input()) - 1 print(ans[K])