l=1, for i in range(10): t,*r=0, for x in l:t+=x;r+=t, l=r+[t]*i+r[print(*l)::-1]