?d.times{|i|p [i>8?2:1,4,8][i%3/2+i%5/4]}