using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, k) = ((int)c[0], c[1]); if (n % k == 0) { WriteLine(string.Join(" ", Enumerable.Repeat(1, n / k).Concat(Enumerable.Repeat(n, n - n / k)))); } else { WriteLine(-1); } } }