import Data.List

printList [] = putStr ""
printList x = putStr $ show x
printList (x:xs) = print x

main = do
  [a,b,k] <- words <$> getLine
  let (a', b', k') = (read a, read b, read k) :: (Int, Int, Int)
      nums = sort $ nub $ (\ns -> take k' ns ++ take k' (reverse ns)) [a'..b']
  printList nums