#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int k; cin >> k; k--; string s = "NUPC"; int y = 4; vector t; for(int i = 0; i < (1 << y); i++){ string tt; for(int j = 0; j < y; j++){ tt += s[j]; if(i&(1 << j)) tt += tt; } t.emplace_back(tt); } sort(t.begin(), t.end()); cout << t[k] << '\n'; return 0; }