let a, b, k = Scanf.scanf " %d %d %d" @@ fun a b c -> a, b, c
let m = b - a + 1
let f = Printf.printf "%d\n"
let _ = if 2 * k >= m then for i = a to b do f i done else (for i = a to a - 1 + k do f i done; for i = b + 1 - k to b do f i done)