fun main(args: Array<String>) = println(run {
    val ( a,b,k) = readLine()!!.split(" ").map { it.toInt() }

    val l = (a..b).take(k)
    val r = (b downTo a).take(k)
    (l+r).distinct().sorted().joinToString("\n")
  
})
