n, k, s = io.read("*n", "*n", "*n")
if n - k < s then
  t = {}
  for i = 1, k do
    t[i] = s
  end
  for i = k + 1, n do
    t[i] = 1
  end
  print(table.concat(t, " "))
else
  t = {}
  for i = 1, k do
    t[i] = s
  end
  for i = k + 1, n do
    t[i] = s + 1
  end
  print(table.concat(t, " "))
end
