N,K = map(int, input().split())

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