
object Main extends App {
  
  val sc = new java.util.Scanner(System.in)
  val a, b, k = sc.nextInt()
  val x = (a to b)
  val merged = x.take(k) ++ x.takeRight(k)
  merged.distinct.foreach(println)
}