let () = Scanf.scanf "%d %d %d" @@ fun n k s ->
  for i = 1 to k do
    Printf.printf "%d " s
  done;
  for i = k + 1 to n do
    Printf.printf "%d " @@
    if n < s then 1 else s + 1
  done;
  print_newline ()