a=*1..10 print a.map{|x|$\=" #{S=' '*~-x}next#$\" S+"for v#{x} = #{1/x} to 9 "},S+' print v'+a*',v'