#include const std::vector alphabet = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; std::vector d; void solve(long long n) { while (n > 26) { d.push_back(alphabet[n%26]); n = (n / 26) - 1; } d.push_back(alphabet[n%26]); for (int i = static_cast(d.size()); i > 0; i--) { std::cout << d[i-1]; } } void No327() { using namespace std; long long N; cin >> N; solve(N); cout << endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(10); std::cerr << std::fixed << std::setprecision(10); No327(); return 0; }