function Main(input){
    input = input.split(" ");
    if(input[2] > input[1]){
        console.log(0);
    }else{
        console.log('%d', input[1] - input[2] - input[0]);
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
