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