// abc093-b
object Main extends App {
  val Array(a,b,k) = io.StdIn.readLine.split(" ").map(_.toInt)

  val l1 = (a to b).take(k)
  val l2 = (a to b).takeRight(k)
  val result = (l1 ++ l2).distinct
  result foreach println
}