let a, b, k = Scanf.scanf " %d %d %d" @@ fun a b c -> a, b, c
let l, r = min b @@ k + a - 1, max a @@ b - k + 1
let _ = for i = a to l do Printf.printf "%d\n" i done; for i = if r <= l then l + 1 else r to b do Printf.printf "%d\n" i done