
// 問題URL
// https://atcoder.jp/contests/abc136/tasks/abc136_a

import java.util.Scanner;
import java.util.Arrays;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.stream.*; stream.* java.util public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    }
} Main public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    } main {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer x = Integer.parseInt(scanner.next()); x Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer y = Integer.parseInt(scanner.next()); y Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer z = Integer.parseInt(scanner.next()); z Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer abs = Math.abs(x-y); abs Math.abs(x-y) Math.abs Math x-y x y if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        } abs >= z abs z {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 {
            System.out.println(Math.abs((x - y) - z));
        } System.out.println(Math.abs((x - y) - z)) System.out.println System.out System System.out Math.abs((x - y) - z) Math.abs Math (x - y) - z (x - y) x y z String[] args args public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    }
} public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    }
} Main

// 問題URL
// https://atcoder.jp/contests/abc136/tasks/abc136_a

import java.util.Scanner;
import java.util.Arrays;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());
        Integer z = Integer.parseInt(scanner.next());
        Integer abs = Math.abs(x-y);
        if (abs >= z) {
            System.out.println(0);
        } else {
            System.out.println(Math.abs((x - y) - z));
        }

    }
}