import Data.List

main = do
  n: k: s: _ <- map read . words <$> getLine :: IO [Int]
  putStrLn $ unwords . map show $ instanciate n k s

instanciate n k s = map foo [1..n]
    where foo i
              | i <= k    = s
              | otherwise = s + 1
