import Control.Applicative
import Control.Monad
import Data.Functor
import Data.List

readInts :: IO [Int]
readInts = map read . words <$> getLine

solve [a, b, c] = max 0 $ c - (a - b)

main = solve <$> readInts >>= print