-- if B / A >= C then C else B / A 

import Control.Applicative

solve :: Int -> Int -> Int -> Int
solve a b c = if b `div` a >= c then c else b `div` a

main :: IO ()
main = do
  [a, b, c] <- map read . words <$> getLine
  putStrLn $ show $ solve a b c
