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