_=0 r='' for x in raw_input()+' ':_+=_-ord(x)%2;r+=' #'[_%8/4] print r
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page