#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{ m=n%26; n=n/26; if(flag){ flag = !flag; ans = char('A'+m)+ans; } else ans = char('A'+m-1)+ans; }while(n!=0); cout << ans << endl; }