for(;m=readline(i=0).split(o=" ");print(o.trim()))for(s=eval(m.join('+'))/2;c=m[i++];o+=c+" |"[+!s])s-=c
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page