#include #include using namespace std; int main(){ long long M; cin >> M; string ans = ""; do{ ans = (char)(M%26 + 65) + ans; M /= 26; M--; }while(M >= 0); cout << ans << endl; return 0; }