main :: IO ()
main = do
  input <- getLine
  let [a, b, c] = map read (words input) :: [Int]
  print . show $ executeA a b c

executeA :: Int -> Int -> Int -> Int
executeA a b c
  | a - b <= c = c - (a - b)
  | otherwise = 0