T = [] t = "NUPC" for a in (1, 2): for b in (1, 2): for c in (1, 2): for d in (1, 2): res = '' for i in range(4): ti = t[i] res += ti if i == 0: if a == 2: res += res elif i == 1: if b == 2: res += res elif i == 2: if c == 2: res += res else: if d == 2: res += res T.append(res) T.sort() k = int(input()) print(T[k - 1])