main :: IO()
main = do
    [a,b,x] <- map read . words <$> getLine
    print $ (div b x) - (kiriageDiv a x) + 1


kiriageDiv :: Integer -> Integer -> Integer
kiriageDiv a b
    | mod a b == 0					= div a b
    | otherwise						= div a b + 1