x = [1,2,3] n = 3 y = take (n * length x) (cycle x) main = print y