(* O(b) *)
let solve a b c =
  let rec loop i r =
    if i >= c || r < a then
      i
    else
      loop (i + 1) (r - a)
  in
    loop 0 b

let _ = Scanf.scanf "%d %d %d" (fun a b c -> solve a b c) |> string_of_int |> print_endline