Box Coloring by hallvabo

c=0
p=r=' '*50
while 1:
 t=''
 for e,f in zip(raw_input(),r):c+=p<e>f;t+=(e,(`c`,f)[f>p])[e>' '];p=e
 print t;r=t

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

download

return top