R=range(1,10) for w in R: for i in R: for j in R: s=`range(i,10,j)[:w]`[1::3] if len(s)==w>1 and'19'!=s:print s