import java.util.*;

public class Main { 
	// Driver program to test above function 
	public static void main(String[] args) 
	{ 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} 
      	
} 
 import java.util.*; util.* java public class Main { 
	// Driver program to test above function 
	public static void main(String[] args) 
	{ 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} 
      	
} Main // Driver program to test above function 
	public static void main(String[] args) 
	{ 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} main { 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long num = sc.nextLong(); num sc.nextLong() sc.nextLong sc StringBuilder columnName = new StringBuilder(); columnName new StringBuilder() while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} num > 0 num 0 { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} long rem = num % 26; rem num % 26 num 26 if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} rem == 0 rem 0 { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} columnName.append("Z") columnName.append columnName "Z" num = (num / 26) - 1 num (num / 26) - 1 (num / 26) num 26 1 { 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} columnName.append((char)((rem - 1) + 'A')) columnName.append columnName (char)((rem - 1) + 'A') (rem - 1) rem 1 'A' num = num / 26 num num / 26 num 26 String lowerCase = columnName.toString().toLowerCase(); lowerCase columnName.toString().toLowerCase() columnName.toString().toLowerCase columnName.toString() columnName.toString columnName char c[]=lowerCase.toCharArray(); c lowerCase.toCharArray() lowerCase.toCharArray lowerCase String reverse=""; reverse "" for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			} int i=c.length-1; int i=c.length-1; i c.length-1 c.length c c.length 1 i>=0 i 0 i-- i-- i {
			reverse+=c[i];
			} {
			reverse+=c[i];
			} reverse+=c[i] reverse c[i] c i System.out.println(reverse) System.out.println System.out System System.out reverse String[] args args public class Main { 
	// Driver program to test above function 
	public static void main(String[] args) 
	{ 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} 
      	
} public class Main { 
	// Driver program to test above function 
	public static void main(String[] args) 
	{ 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} 
      	
} Main
import java.util.*;

public class Main { 
	// Driver program to test above function 
	public static void main(String[] args) 
	{ 
		Scanner sc = new Scanner(System.in);
      	long num = sc.nextLong();
      	StringBuilder columnName = new StringBuilder(); 

		while (num > 0) { 
		
			long rem = num % 26; 
			if (rem == 0) { 
				columnName.append("Z"); 
				num = (num / 26) - 1; 
			} 
			else 
			{ 
				columnName.append((char)((rem - 1) + 'A')); 
				num = num / 26; 
			} 
		} 
		String lowerCase = columnName.toString().toLowerCase();
      	char c[]=lowerCase.toCharArray();
		String reverse="";

		for(int i=c.length-1;i>=0;i--){
			reverse+=c[i];
			}
		System.out.println(reverse); 
	} 
      	
} 

