let () =
  let a,b,c = Scanf.sscanf (read_line()) "%d %d %d" (fun a b c -> a,b,c) in
  let rec find_divisors divisor n =
    if divisor > b then n
    else
      begin
        if c mod divisor = 0 then find_divisors (divisor + 1) (n + 1)
        else find_divisors (divisor + 1) n
      end
  in
  print_int (find_divisors a 0);
  print_string "\n"
;;
