#include <iostream>
#include <algorithm>
using namespace std;
int main(){
	long n;
	cin >> n;
	string arr="";
	while(n>0){
		n--;
		arr += (char)(97+n%26);
		n/=26; 
	}
	reverse(arr.begin(),arr.end());
	cout<<arr;
}