object Main extends App {
	val Array(a, b, k) = scala.io.StdIn.readLine.split(" ").map(_.toLong)

	val a1 = a+k
	val b1 = b-k+1

	if(a1 < b1){
		for(x<-a until a1){
			println(x)
		}
		for(x<- b1 to b){
			println(x)
		}
	}else if(a1 >= b1){
		for(x <- a to b){
			println(x)
		}
	}


}
