main :: IO ()
main = do
    str <- getLine
    let inputs = [read word :: Int | word <- words str]
    let a = head inputs
    let b = head $ tail inputs
    let c = head . tail $ tail inputs

    print . length $ divisor a b c

divisor :: Int -> Int -> Int -> [Int]
divisor a b c = [ n | n <- [a .. b],  c `mod` n == 0]