f=lambda n,v="print ",i="":i+(v[:-1]if n>10 else"for v%d = %d to 9\n"%(n,n<2)+f(n+1,v+"v%d,"%n,i+" ")+i+"next")+"\n" print f(1)