-- | Main entry point to the application.
module Main where

import Control.Applicative
import Control.Monad
import Data.List
import Debug.Trace
import Text.Printf

rInt :: String -> Int
rInt str = read str :: Int

findDiv :: Int -> Int -> Int -> Int
findDiv a b c
    | a > b = 0
    | a <= b && c `mod` a == 0 = 1 + findDiv (a+1) b c
    | a <= b && c `mod` a > 0 = 0 + findDiv (a+1) b c

-- | The main entry point.
main :: IO ()
main = do
    [a, b, c] <- (map rInt . words) <$> getLine
    --s <- getContents
    printf "%d\n" $ findDiv a b c