let range a b = 
    let rec range' i j xs =
        if i > j then xs
        else range' i (j - 1) (j :: xs) in
    range' a b []

let (a, b, c) = Scanf.sscanf(read_line()) "%d %d %d" (fun x y z -> (x, y, z)) in
Printf.printf "%d\n" (range a b |> List.filter (fun x -> c mod x = 0) |> List.length);
