#include <bits/stdc++.h>
using namespace std;

int main() {
    long long N;
    cin >> N;
    string res = "";
    while (N) {
        --N;
        res += (char)('a' + (N % 26));
        N /= 26;
    }
    reverse(res.begin(), res.end());
    cout << res << endl;
}
#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;
  bool flg = false;
  for(int i = 0; i < s.size(); i++){
    if(flg){
      if(s[i] == 'C'){
        cout << "Yes" << endl;
        return 0;
      }else{
        flg =false;
      }
    }else{
      if(s[i] == 'A') flg = true;
    }
  }
  cout << "No" << endl;
  return 0;
}