'use strict'
function main(inp) {
  inp = inp.split(' ').map(n => n - 0)
  let ans = inp[2] - (inp[0] - inp[1])
  console.log(ans > 0 ? ans : 0)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
