while(t=#Str(s=input)-4+(s\1e5==9),a=s\b=10^t;print((a+2+(s%b)^2/a)\4))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page