#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 1000000007; int main() { ll n; cin>>n; int i=1; char s[20]; s[0]='A'+n%26; n/=26; while(n/26!=0){ n--; s[i++]='A'+n%26; n/=26; } n--; s[i++]='A'+n%26; int m=i; for(int i=m;i>=0;i--)putchar(s[i]); return 0; }