import Control.Applicative

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