while 1: \x09s="" \x09for x in raw_input()[::2]:s+=[" ","] ["][x!=s[-1:]]+x \x09print s[2:]+"]"
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page