long s;t[9];main(i){for(s=atol(gets(&s))+1;s--;s/=26)t[i++]=65+s%26;for(;s=--i;)putchar(t[i]);}