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