#include #include using namespace std; //first one :A-Z:0-25 //the other :A-Z:1-26 int main(){ long int n; int m; bool flag = true; string ans = ""; vector q; cin >> n; do{ if(flag){ m=n%26; n=n/26; ans = char('A'+m)+ans; flag = !flag; } else{ m=n%27; n=n/27; ans = char('A'+m-1)+ans; } }while(n!=0); cout << ans << endl; }