i;main(k,t){for(;~scanf("%d",&t);puts("")){for(i=1;t/k;)k*=++i;for(;i;t%=k)k/=i--,putchar(48+t/k);}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page