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