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 _ =
  if l <= r then for i = a to b do Printf.printf "%d\n" i done
  else
    (for i = a to r do Printf.printf "%d\n" i done;
    for i = l to b do Printf.printf "%d\n" i done)