object Main extends App {
    val scanner = new java.util.Scanner(System.in)
    val a = scanner.next().toInt
    val b = scanner.next().toInt
    val k = scanner.next().toInt
    val ma = math.max(a, b)
    val mi = math.min(a, b)
    for (i <- mi to (math.min(mi+k, ma)-1)) println(i)
    for (i <- math.max(math.min(mi+k, ma)-1, ma-k)+1 to ma) println(i)
}
