$<.map{|x|n=x=2*~x.to_i;puts (x==0?' ':?++?-*~-x.abs+?+).center~n,?|while-n>x+=2}