let () =
  let i = read_line () in
  let a,b,c = Scanf.sscanf i "%d %d %d" (fun a b c ->  a,b,c) in
  let lim = c/2 in
  let rec aux i count =
    if i > lim || i > b then string_of_int count
    else aux (i+1) (if c mod i = 0 then count+1 else count)
  in
  print_endline (aux a 0)