fun main(array: Array<String>) {
    val (a, b, k) = readLine()!!.split(" ").map { it.toInt() }
    val list = mutableListOf<Int>()
    var cnt = 0
    for(i in a..b) {
        list.add(i)
        cnt++
        if(cnt < k) {
            continue
        }
        else {
            break
        }
    }
    cnt = 0
    loop@for(j in b downTo 1) {
        while (j >= a) {
            list.add(j)
            cnt++
            if(cnt < k) {
                continue@loop
            }
            else {
                break@loop
            }
        }
    }
    val ansList = list.toSet().toList().sorted()
    for(num in ansList) {
        println(num)
    }
}
