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