S = input R = range P = print def I(): return int(S()) def M(): return map(int, S().split()) def L(): return list(M()) def O(): return list(map(int, open(0).read().split())) def yn(b): print("Yes" if b else "No") biga = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" smaa = "abcdefghijklmnopqrstuvwxyz" def z(s): ans = "" for i in s: if i == '2': ans += ans elif i != '1': ans += i return ans K = int(input()) a = [] for i in range(16): x = "" for j in range(8): if j % 2 == 0: x += "NUPC"[j // 2] else: x += "12"[(i >> (j // 2)) & 1] a.append(z(x)) a.sort() print(a[K - 1])