let is_d x i = x mod i = 0;;

let rec f c i mx ans =
	if i > mx then
			ans
	else
			if is_d c i then f c (i+1) mx (ans+1) else f c (i+1) mx ans;;

Scanf.sscanf(read_line()) "%d %d %d" (fun a b c -> Printf.printf "%d\n" (f c a b 0));;


