object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val A, B, K = sc.nextInt()
  val length = (B - A + 1) min K
  LazyList.from(A).take(length)
    .concat(LazyList.from(B, -1).take(length).reverse)
    .distinct
    .foreach(println)
}
