Suanpan abacus by hirose

s=raw_input()\x0d
for i in xrange(17):x="\/<>";print["||  "+"  ".join(["(__)"," || "][2<int(c)/5+i<5or 5<i-int(c)%5<11]for c in s)+"  ||","|"+x[i%3]+"="*(len(s)*6+2)+x[1-i%3]+"|"][i in[0,5,16]]

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

download

return to the top page