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