import Control.Applicative
main = do
    line <- words <$> getLine
    print . solve $ map (read :: String -> Int) line
solve :: [Int] -> Int
solve [a, b, c] = length [ x | x <- [a..b], c `mod` x == 0]