N, K = map(int, input().split()) print(*[2 * K, N - 2 + 2 * K] + [1] * (N - 2))