const a_max = Number(process.argv[2]);
const a_current = Number(process.argv[3]);
const b_current = Number(process.argv[4]);


const a_capacity = a_max - a_current;
console.log( Math.max(b_current - a_capacity, 0) );




