nupc = "NUPC" comp = [] for x in range(16): t = "" for i in range(4): t += nupc[i] if x & (1 << i): t += t comp.append(t) comp.sort() k = int(input()) - 1 print(comp[k])