#include using namespace std; int main() { long long n; cin >> n; n ++ ; string s; while (n > 0) { int x = n % 26; if (x == 0) s += 'Z', n = n / 26 - 1; else s += x + 'A' - 1, n /= 26; } reverse(s.begin(), s.end()); cout << s; }