import Control.Arrow
import Control.Monad
import Data.Bits
import Data.Char
import Data.List

main :: IO ()
main = do
  [a, b, k] <- getInts
  mapM_ print [x | x <- [a..b], x < a + k || b - k < x]

getInts :: IO [Int]
getInts = map read . words <$> getLine
