{-# OPTIONS_GHC -O2 -funbox-strict-fields #-}
import qualified Data.ByteString.Char8 as BC
import           Data.Maybe            (fromJust)

main :: IO ()
main = do
  [a, b, k] <- getInts
  putStr . unlines . map show $ solve a b k

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

readInts :: BC.ByteString -> [Int]
readInts = map (fst . fromJust . BC.readInt) . BC.words

getInts :: IO [Int]
getInts = readInts <$> BC.getLine
