(f = i => console.log(i.split(' ').map(e => parseInt(e)).reduce((total, v) => total - v) >= 0 ? 0 : Math.abs(i.split(' ').map(e => parseInt(e)).reduce((total, v) => total - v))))(require('fs').readFileSync('/dev/stdin', 'utf8'))