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