p=o=x=0 for i in open(0).read():o^=' '<i;print(end=(i,':$*'[p//4%3])[p%4<x*o]);p+=x*o;x=o
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page