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