import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int n = in.nextInt();
String s = converTotitle(n);
System.out.println(s);
}
private static String converTotitle(int n) {
String str="";
if(n!=0){
int x=n/26;
int y=n%26;
if(y==0){
str='Z'+str;
x=x-1;
}
else{
str=(char)(y+64)+str;
while(x!=0){
y=x%26;
x=x/26;
if(y==0){
str='Z'+str;
x=x-1;
}
else{
str=(char)(y+64)+str;
}
}
}
}
return str;
}
}