#include using namespace std; int main(){ long long n; string s = ""; cin >> n; n++; while(n != 0){ n--; s += char('A' + n % 26); n /= 26; } cout << string(s.rbegin(),s.rend()) << endl; }