import itertools

X = "NUPC"
All = []
for Z in itertools.product((1, 2), repeat=4):
    T = []
    for x, z in zip(X, Z):
        T.append(x)
        if z == 2:
            T *= 2
    All.append(T)

All.sort()
K = int(input()) - 1
print("".join(All[K]))