{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedLists #-}

module Main where

import qualified Data.Text as T
import qualified Data.Text.IO as T
import Data.List
import Control.Applicative
import Control.Monad

main :: IO ()
main = do
  [bottom, up, range] <- map read . words <$> getLine
  putStrLn $ solve bottom up range

solve :: Int -> Int -> Int -> String
solve b u r
  | length target `div` 2 > r =  foldl (\temp num -> show num ++ '\n' : temp) ""
  . reverse $  take r target `union` drop (length target - r) target
  | otherwise                =  foldl (\temp num -> show num ++ '\n' : temp) ""
  . reverse $ target
  where
    target :: [Int]
    target = [b..u]
  
