smallAndLarge a b k = [a..(a+k)] ++ (reverse [(b-k)..b])
elemABC xs = 'a' `elem` xs  && 'b' `elem` xs  && 'c' `elem` xs

main :: IO ()
main = do
    [a, b, k] <- map read . words <$> getLine
    mapM_ print $ smallAndLarge a b k