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)
    val maSubK = if (ma - k < mi) { mi } else { ma - k }
    val miAddK = if (mi + k >= maSubK) { maSubK - 1 }  else { mi + k }
    for ( i <- mi to miAddK ) println(i)
    for ( i <- maSubK to ma ) println(i)
}