function Main(input) {
	input = input.split(" ");
	var intInput = input.map( v => parseInt(v,10));
  	var wat = intInput[2]-(intInput[0]-intInput[1])
  	console.log( (wat)<0? 0:wat);
}


Main(require("fs").readFileSync("/dev/stdin", "utf8"));