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

divisors :: Int -> Int -> Int
divisors a b
  |a `mod` b  == 0 = 1
  |otherwise      = 0
  
main :: IO ()
main = do
  input <- getLine
  let tripleInt = map rInt $ words input
  let a = head tripleInt
      b = tripleInt !! 1
      c = last tripleInt  
  --print $ sum (map (divisors c) [a..b])
  print $ sum [1 | x <- [a..b], c `mod` x == 0]   	 