function Main(input) {
    input = input.trim()
  input = input.split(" ").map(Number);
  var N = input[2]-(input[0]-input[1]);
  if(N<0) N=0;
  console.log(N)
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));
