#include #include #include using namespace std; int main() { int64_t N; cin >> N; string ans = ""; while (N > 0) { ans += (char)('A' + N % 26); N /= 26; } reverse(ans.begin(), ans.end()); cout << ans << endl; return 0; }