#include #include #include #include using namespace std; typedef long long int ll; int main() { ll n; cin >> n; if (n == 0) { cout << 'A' << endl; return 0; } while (n > 0) { cout << (char) (n % 26 + 'A') << endl; n = n / 26; } return 0; }