/**
#include <stdio.h>
int main()
{
int i, j, k, n, m;
char str[27] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
scanf("%d", &n);
if (n <= 26)
{
printf("%c", str[n - 1]);
return 0;
}
// if (n == 52)
// {
// printf("AZ");
// return 0;
// }
m = n / 26;
char x = str[m];
n -= 26 * m;
char z = str[n];
printf("%c%c", x - 1, z - 1);
return 0;
}
.
**/
/*
#include <stdio.h>
int main()
{
int i, j, k, n, m;
char str[26] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
int a = 65, b = 64;
scanf("%d", &n);
if (n <= 26)
{
printf("%c", str[n - 1]);
return 0;
}
for (i = 1 ; i <= n ; i ++)
{
if (b == 90)
{
b = 64;
a ++;
//printf("%c%c\n", a - 1, b);
}
b ++;
}
printf("%c%c", a - 1, b);
return 0;
}*/
#include <stdio.h>
char str[26] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
void f(int n)
{
if (n == 0) return ;
f (n / 26);
printf("%c", str[n % 26] - 1);
}
int main()
{
int n;
scanf("%d", &n);
if (n == 26)
{
printf("Z");
return 0;
}
f (n);
return 0;
}