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

()
|> readIntArray
|> fun [| a; b; k |] ->
    [| a .. b |]
    |> Array.indexed
    |> fun x ->
        x
        |> Array.filter (fun (i, _) -> i < k || (x.Length - k) <= i)
        |> Array.map snd
    |> Array.map string
|> String.concat "\n"
|> printfn "%s"
