import Data.List

smallAndLarge a b k = nub ([x | x <- [a..(a+k)], x < b] ++ [x | x <- [(b-k)..b], a < x])

main :: IO ()
main = do
    [a, b, k] <- map read . words <$> getLine
    mapM_ print $ smallAndLarge a b k