const returnInt = x => parseInt(x,10);

const main = input => {
  result = input.split(' ').map(returnInt).reduce((sum,x) => sum-x);
  result > 0 ? console.log(0) : console.log(Math.abs(result));
}

main(require('fs').readFileSync('/dev/stdin','utf8'));