module Main where

import           Control.Monad
import           Data.List
import           Data.Ord
import           Data.List.Split
import           Data.Array.IO
import qualified Data.Vector.Unboxed as V

main :: IO ()
main = do
  [a, b, c] <- map read . words <$> getLine
  mapM_ print $ get c [a .. b] [b, (b - 1) .. a]
  where
    get c xs ys = nub $ (take c xs) ++ (sort $ take c ys)