#include #include #include using lint = long long; void solve() { lint n; std::cin >> n; int len = 1; lint pat = 26; while (n >= pat) { n -= pat; pat *= 26; ++len; } std::string s; while (len--) { s.push_back(n % 26 + 'A'); n /= 26; } std::reverse(s.begin(), s.end()); std::cout << s << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }