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