N, K = gets.split.map(&:to_i) a = 2 * K b = 2 * K + N - 2 puts [[a, b] + [1] * (N - 2)].flatten.join(' ')