function Main(input) {
    input = input.split(" ").map(Number);
    console.log(Math.max(0,Math.max(input[2]-input[1]-input[0],input[1]-input[0]-input[2])));
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());