N,K=map(int,input().split()) if N%K==0: x=N//K ANS=[1]*x+[N]*(N-x) print(*ANS) else: print(-1)