while 1:n=input();r=k=f=1;exec"r+=n%10*f;n/=10;f*=k;k+=1;"*11;print~-r
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page