#include #include #include #include using namespace std; #define FOR(x,y) for(int x = 0;x < y;x++) #define LLI long long int template class UF { public: vector par,rank,cnt; UF() {par=rank=vector(um,0); cnt=vector(um,1); for(int i=0;irank[y]) return par[x]=y; rank[x]+=rank[x]==rank[y]; return par[y]=x; } }; int main(int argc, const char * argv[]) { LLI N; cin >> N; vector texts; while(true) { if(N >= 26) { int mod = N % 26; texts.push_back('A' + mod); N = ( N - 26) / 26; } else { texts.push_back('A' + N); break; } } reverse(texts.begin(),texts.end()); for(auto c : texts){ cout << c; } cout << endl; return 0; }