Counting rods; count your rods
Python 2 - 216
My first shot, might be some stuff to take out, but my brain hurts, so it's good enough for now
x=raw_input()
for l in range(5):print'  '.join((' '*7+'|   | |  ||| || '+'|'*7+'__|'+'_'*7)[[7*(4-l&lt;n%6+n/6)+(n&gt;5)*(l&lt;10-n)-(l==10-n),n%6+n/6+(l&lt;1)*(n&gt;5)*(12-n)][(len(x)-i)%2]*5:][:5]for i,n in enumerate(map(int,x)))