#include using namespace std; long long n; string s = ""; int main(){ cin >> n; bool fg = 1; while(fg == 1){ int t = n % 26; t += 65; char d = t; s += d; n /= 26; if(n == 0){ fg = 0; } if(n == 1){ n = 0; } } for(int i = s.size() - 1;i >= 0;i--){ cout << s[i]; } cout << endl; return 0; }