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