d = [''] for c in 'NUPC': nd = [] for s in d: s += c nd.append(s) nd.append(s + s) d = nd d.sort() print(d[int(input()) - 1])