import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.List
import Data.Maybe
import qualified Data.Vector.Unboxed as VU
import qualified Data.Vector.Unboxed.Mutable as VUM

readInteger = fst . fromJust . BS.readInteger

readIntegerList = map readInteger . BS.words

getIntegerList = readIntegerList <$> BS.getLine

main = do
  [n, k, s] <- getIntegerList
  let n' = fromIntegral n :: Int
  let k' = fromIntegral k :: Int
  putStrLn $ concat (intersperse " " (map (\x -> show x) (replicate k' s ++ take (n' - k') (repeat (s + 1)))))
