fun main(arr:Array<String>) {
    val (a,b,k) = readLine()!!.split(" ").map { it.toLong() }
    val ans = (a..Math.min(b, a+k-1)).toList().union((Math.max(b-k+1, a)..b)).toSet()
    ans.forEach { println(it) }
}


