let input = readLine()!.characters.split(" ").map{Int(String($0))!}
let (A, B, K) = (input[0], input[1], input[2])
for i in A...min(A+K-1, B) {
    print(i)
}
for i in max(A+K, B-K+1)...B {
    print(i)
}
