'use strict'

function main(input) {
  input = input
    .trim()
    .split(' ')
    .map(v => ~~v)
  const tmp = input[0] - input[1]

  console.log(Math.max(0, input[2] - tmp))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))