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