let inline scan () = System.Console.ReadLine()
let inline split (s: string) = s.Split(' ')

let [|a;b;k|] = scan () |> split |> Array.map int
let len = b - a + 1
if len <= k * 2 then
  for i = a to b do printfn "%i" i
else
  for i = a to a + k - 1 do printfn "%i" i
  for i = b - k + 1 to b do printfn "%i" i
