import Control.Applicative
import Data.List

check :: [Integer] -> [Integer]
check [a, b, k] 
    | b - a <= 2 * k + 1 = [a..b]
    | otherwise = [a..(a + k - 1)] ++ [(b - k + 1)..(b)]

print_all :: [Integer] -> IO ()
print_all [] = return () :: IO ()
print_all (f:rest) = do
    print f
    print_all rest

main = do
    a <- check <$> map (\a -> read a :: Integer) <$> words <$> getLine
    print_all a
