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

resovle:: Int -> Int -> Int -> [Int]
resovle a b k
  | d < k = [a..b]
  | otherwise = [a..(a + k - 1)] ++ [(b - k + 1)..b]
  where d = div (b - a + 1) 2
