$n=<>;$\=(A..Z)[$n%26].$\,$n=$n/26-1while$n>=0;print