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