import Control.Applicative
import Control.Monad
 

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 diff >= 0 then diff else 0
      where diff = c - (a - b)