open Printf
open Str

let inputs string =
	let l_of_str = Str.split (Str.regexp " ") string in
	let nums = Array.of_list (List.map int_of_string l_of_str) in
	let hms nums =
		let cnt = ref 0 in
		for i=nums.(0) to nums.(1) do	
			if 0 = (nums.(2) mod i) then cnt := (!cnt+1)
		done;
		printf "%d\n" !cnt in
	hms nums;;


let s = read_line() in
	inputs s;;