import scala.io.{StdIn => in}

object Main extends App {
  val out = new java.io.PrintWriter(System.out)
  val Array(a, b, k) = in.readLine.split(" ").map(_.toInt)

  val f = (a to b).take(k).toArray
  val l = (a to b).takeRight(k).toArray
  val ans = (f ++: l).distinct
  ans.foreach(out.println)
  out.flush
}