import Data.List

main = do
        e<-getLine
        let 
             (a:b:w:[])=map read (words e)::[Int]
        mapM_ putStrLn $ map show $ sort $ nub $ filter (<= b ) $ filter (>= a ) $ [a..(a+w-1)]++[b,(b-1)..(b-w+1)]