function Main(input) {
  var a = parseInt(input.split(" ")[0]);
  var b = parseInt(input.split(" ")[1]);
  var c = parseInt(input.split(" ")[2]);
  console.log(b+c-Math.min(a, b+c));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));