n=eval(*$<)*2 p n/=2.0while 1<n=0|n+n/2%1

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top