#include <bits/stdc++.h>
using namespace std;

string decompress(string s) {
    string res = "";
    for (auto&& c : s) {
        if ('A' <= c && c <= 'Z') {
            res.push_back(c);
        } else {
            if (c == '2') {
                res = res + res;
            }
        }
    }
    return res;
}

int main() {
    int K;
    cin >> K;

    const int size = 4;
    vector<string> compressed;
    for (int bit = 0; bit < (1 << size); bit++) {
        string tmp = "N1U1P1C1";
        for (int i = 0; i < size; i++) {
            if (bit & (1 << i)) {
                tmp[2 * i + 1] = '2';
            }
        }
        compressed.push_back(tmp);
    }

    vector<string> decompressed;
    for (auto&& s : compressed) {
        string t = decompress(s);
        decompressed.push_back(t);
    }

    sort(decompressed.begin(), decompressed.end());

    cout << decompressed[K - 1] << endl;
}