s="print " for i in range(21):print' '*min(i,20-i)+[s[:-1],"next","for v%d = %d to 9"%(i+1,0**i)][cmp(i,10)];s+="v%d,"%-~i