import Control.Applicative ((<$>))
import Data.Char (isSpace)
import Data.List (unfoldr)
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
        xs = zip [1..n] [a..b]
    putStr $ unlines $ map show $ [(snd x) | x <- xs, (fst x) <= k || (n - k + 1) <= (fst x)]
