{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedLists #-}

module Main where

import qualified Data.Text as T
import qualified Data.Text.IO as T
import Data.List
import Control.Applicative
import Control.Monad
import Data.Char

main :: IO ()
main = do
  [bottom, up, range] <- map read . words <$> getLine
  putStrLn $ solve bottom up range

solve :: Int -> Int -> Int -> String
solve b u r = concat . intersperse "\n" . map show $ take r target `union` drop (length target - r) target where
  target :: [Int]
  target = [b..u]
  
