import sequtils, strutils let nk = stdin.readLine.split.map parseInt n = nk[0] k = nk[1] echo: if (n mod k) == 0: let x = n div k ans = repeat(1, x) & repeat(2, n.pred x) ans.join " " else: "-1"