s=[] nupc="NUPC" for i in range(16): t="" for j in range(4): t+=nupc[j] if (i>>j)&1: t=t+t s+=[t] s.sort() print(s[int(input())-1])