let rec p x y c =
    match x with
    | x when x > y -> []
    | _ -> if (c mod x) = 0 then x :: p (x+1) y c else p (x+1) y c
let _ = Scanf.sscanf (read_line ()) "%d %d %d" (fun a b c ->
  print_endline (string_of_int (List.length (p a b c)))
)
