n, k = map(int, input().split()) if n % k != 0: print('-1') else: dice = [1] * (n // k) dice += [n] * (n - n // k) print(*dice)