const input = require("fs").readFileSync("/dev/stdin", "utf8")
const parts = input.split(" ");

const A = parseInt(parts[0], 10);
const B = parseInt(parts[1], 10);
const C = parseInt(parts[2], 10);

const R = Math.max(C - (A - B), 0)

console.log(R)