let countdiv a b ct = if b mod a == 0 then ct+1 else ct;;
let rec g a b c ct =
  match a with
    x when x = b -> ct
  | x -> g (x+1) b c (countdiv x c ct);;
let f x y z =
  Printf.printf "%d\n" (g x y z 0);;
let () = Scanf.scanf "%d %d %d\n" f;;