N,K = map(int, input().split()) dice = list() cnt = 0 ans = False for i in range(N): if cnt/N == 1/K: dice.append(2) ans = True else: dice.append(1) cnt += 1 if cnt/N == 1/K: ans = True if ans: print(*dice) else: print(-1)