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

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

slv :: Integer -> Integer -> Int -> String
slv a b k = unlines $ map show $ front ++ back'
  where ls = [a..b]
        (front, back) = splitAt k ls
        back' = reverse $ take k $ reverse back
