#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int K; cin >> K; string S = "NUPC"; vector T(16); rep(i, 1<<4) { rep(j, 4) { T[i] += S[j]; if (((i >> j) & 1) == 1) { T[i] += T[i]; } } } sort(T.begin(), T.end()); cout << T[K-1] << endl; return 0; }