main :: IO ()
main = do
  line <- getLine
  print $ divisor_counter $ map (read :: String -> Int) $ words line
  
divisor_counter :: [Int] -> Int
divisor_counter (a:b:c:[]) =
  length [i | i <- [1..c], c `rem` i == 0, a <= i, i <= b]

