import Control.Applicative

main = do [a,b,c] <- (map read) . words <$> getLine
          print . length $ filter (solve c) [a..b]

solve :: Int -> Int -> Bool
solve c x | c `mod` x == 0 = True
          | otherwise = False