#include using namespace std; int main() { int N; cin >> N; vector S; vector NUPC = {'N', 'U', 'P', 'C'}; for (int bit = 0; bit < (1 << 4); bit++) { string s; for (int i = 0; i < 4; i++) { s += NUPC[i]; if (bit & (1 << i)) { s += s; } } S.push_back(s); } sort(S.begin(),S.end()); cout << S[N - 1]; }