import           Control.Monad
import           Control.Applicative
import qualified Data.Vector                   as V
import           Data.Array.IO

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

  print $ if a * c < b then c else b `div` a