n,k=map(int,input().split()) a=2*k b=2*k+n-2 ans=[a,b]+[1]*(n-2) print(*ans)