main :: IO()
main = do
  [a, b, c] <- map read . words <$> getLine
  print $ slv a b c
 
slv :: Integer -> Integer -> Integer -> Integer
slv a b c | (b + c) - a >= 0 = (b + c) - a 
          | otherwise = 0