import Control.Applicative
import Control.Monad
import Data.List
import Data.Set

main = do
    [a, b, k] <- Data.List.map read . words <$> getLine
    mapM putStrLn $ Data.List.map show $ ans a b k

ans a b k = toAscList concat
    where
        left = fromList $ Data.List.take k [a..b]
        right = fromList $ reverse $ Data.List.take k [b, b-1..a]
        concat = Data.Set.union left right
