import Control.Monad
import Control.Applicative

solve :: Int -> Int -> Int -> Int
solve a b c = 
  if (c - (a - b)) < 0
    then 0
    else (c - (a - b))

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