fun main(args:Array<String>) {
	val (a,b,k) = readLine()!!.split(" ").map{ it.toLong() }
	(a..b).take(k.toInt())
			.plus( (a..b).reversed().take(k.toInt()) )
			.distinct()
			.sorted()
			.forEach { println(it) }
}