n, k, s = gets.split.map(&:to_i)
result = []

if s.even?
  if k > 0
    (k + 1).times do
      result << s / 2
    end

    (n - (k + 1)).times do
      result << s + 1 if s < 10**9
      result << s - 1 if s == 10**9
    end
  else
    n.times do
      result << s + 1 if s < 10**9
      result << s - 1 if s == 10**9
    end
  end
end

if s.odd?
  if k > 0
    flag = false
    (k + 1).times do
      tmp = flag ? s / 2 : s / 2 + 1
      result << tmp
      flag = !flag
    end

    (n - (k + 1)).times do
      result << s + 1 if s < 10**9
      result << s - 1 if s == 10**9
    end
  else
    n.times do
      result << s + 1 if s < 10**9
      result << s - 1 if s == 10**9
    end
  end
end

puts result.join(' ')
