import Control.Applicative ((<$>))
import Control.Monad (mapM_)
import Data.Char (isSpace)
import Data.List (reverse, unfoldr, unlines)
import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as BSC8

getL :: (ByteString -> [Int]) -> IO [Int]
getL f = f <$> BSC8.getLine

readIL :: (ByteString -> Maybe (Int, ByteString)) -> (ByteString -> [Int])
readIL f = unfoldr g
    where g s = do
            (n, s') <- f s
            return (n, BSC8.dropWhile isSpace s')

main :: IO ()
main = do
    [a, b, k] <- getL (readIL BSC8.readInt)
    let n = b - a + 1
    mapM_ print $ reverse $ solve 1 k n [a..b] []

solve :: Int -> Int -> Int -> [Int] -> [Int] -> [Int]
solve _ _ _ [] ans = ans
solve i k n (x:xs) ans
    | i <= k || (n - k + 1) <= i = solve (i+1) k n xs (x:ans)
    | otherwise                  = solve (i+1) k n xs ans