{-# LANGUAGE OverloadedStrings #-}

import qualified Data.ByteString.Char8 as B
import Data.Attoparsec.ByteString.Char8

type Input = (Int, Int, Int)

inputParser :: Parser Input
inputParser = (,,)
  <$> decimal <* space
  <*> decimal <* space
  <*> decimal <* endOfLine

main :: IO ()
main = B.interact
  $ B.pack . show . either (error "parse error") solve . parseOnly inputParser

solve :: Input -> Int
solve (a, b, c) = (b `div` a) `min` c