let (n, k, s) = Scanf.sscanf (read_line ()) "%d %d %d" @@ fun n k s -> (n, k, s)

let () =
  Array.concat [Array.make k s; Array.make (n - k) (if s = 1000000000 then 1 else s + 1)] 
  |> Array.map string_of_int
  |> Array.to_list
  |> String.concat " "
  |> print_endline