I,R,O=input,range,print J=lambda:map(int,I().split()) N=int(I()) S="NUPC" D=[] for i in R(2): a=S[0] if i==1:a+=a for j in R(2): b=a+S[1] if j==1:b+=b for k in R(2): c=b+S[2] if k==1:c+=c for h in R(2): d=c+S[3] if h==1:d+=d D+=[d] D.sort() O(D[N-1])