for(s="000"+readline(t="").replace(/ /g,0).replace(/#/g,1);s=s.slice(1);t+=s.slice(0,3)-1&4?" ":"#");print(t)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page