let func a b c =
  let rec f x res =
    if x > b then res
    else
    if c mod x = 0 then f (x+1) (res+1)
    else f (x+1) res
  in f a 0
  
let () =
  print_int @@  Scanf.scanf "%d %d %d\n" func; print_newline ()