{-# LANGUAGE ScopedTypeVariables #-}
import Control.Monad
import qualified Data.ByteString.Char8 as BS
 
main = do
    [a, b, c] :: [Int] <- map ( read . BS.unpack ) . BS.words <$> BS.getLine
    putStrLn $ show $ min c (b `div` a)