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