let readIntArray () =
    stdin.ReadLine().Split(" ") |> Array.map int

()
|> readIntArray
|> fun [| a; b; k |] ->
    seq { a .. b }
    |> Seq.map string
    |> Seq.indexed
    |> Seq.fold (fun state (i, v) -> if i < k || (b - a - k) < i then sprintf "%s\n%s" state v else state) ""
    |> printfn "%s"
