import Control.Monad
import Text.Printf
import Control.Applicative

main :: IO()
main = do
  [a, b, k] <- words <$> getLine
  printf "%s" $ slv (read a :: Int) (read b :: Int) (read k :: Int)

slv :: Int -> Int -> Int -> String
slv a b k | (b - a + 1) > 2 * k = unlines $ map show anslist
          | otherwise = unlines $ map show [a..b]
  where anslist = ls ++ rls
        ls = take k [a..b]
        rls = reverse $ take k $ reverse [a..b]

