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

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

f c = putStrLn c
calc a b k = nub $ map show ([a..(min (a+k-1) b)] ++[(max (b-k+1) a)..b])