const numberList = require('fs').readFileSync('/dev/stdin','utf8').trim().split(' ')

const a = numberList[0]
const b = numberList[1]
const c = numberList[2]
var answer = c - (a - b)

answer = answer < 0 ? 0 : answer
console.log(answer)
