let rec how_many_divisors i n z =
  if i > n then 0
  else if z mod i = 0 then 1 + (how_many_divisors (i + 1) n z)
  else how_many_divisors (i + 1) n z ;;

let f s = Scanf.sscanf s "%d %d %d" how_many_divisors ;;
print_endline (string_of_int (f(read_line()))) ;;
