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

let [|a;b;k|] = scan () |> split |> Array.map int
let xs = seq [a..b]
if (b - a + 1) <= k * 2 then
  xs |> Seq.iter (printfn "%i")
else
  xs |> Seq.take k |> Seq.iter (printfn "%i")
  xs |> Seq.skip (Seq.length xs - k) |> Seq.iter (printfn "%i")
