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