import Control.Applicative ((<$>))

main :: IO ()
main = solve <$> map read <$> words <$> getLine >>= mapM_ print

solve :: [Int] -> [Int]
solve [a, b, k]
  | a - b + 2 * k - 2 >= 0 = [a .. b]
  | otherwise = [a .. a+k-1] ++ [b-k+1 .. b]
