long s;t[9];main(i){for(scanf("%ld",&s);~s;s=s/26-1)t[i++]=65+s%26;for(;s=--i;)putchar(t[i]);}