import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> input = Arrays.asList(br.readLine().split(" ")); input Arrays.asList(br.readLine().split(" ")) Arrays.asList Arrays br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " List<Integer> numbers = new ArrayList<>(); numbers new ArrayList<>() for (String s : input) {
                numbers.add(Integer.parseInt(s));
            } String s input {
                numbers.add(Integer.parseInt(s));
            } {
                numbers.add(Integer.parseInt(s));
            } numbers.add(Integer.parseInt(s)) numbers.add numbers Integer.parseInt(s) Integer.parseInt Integer s int limitOfbucketA = numbers.get(0); limitOfbucketA numbers.get(0) numbers.get numbers 0 int limitOfbucketC = numbers.get(2); limitOfbucketC numbers.get(2) numbers.get numbers 2 int inBucketA = numbers.get(1); inBucketA numbers.get(1) numbers.get numbers 1 int result = limitOfbucketA - inBucketA - limitOfbucketC; result limitOfbucketA - inBucketA - limitOfbucketC limitOfbucketA - inBucketA - limitOfbucketC limitOfbucketA inBucketA limitOfbucketC if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            } result < 0 result 0 {
                result *= -1;
            } result *= -1 result -1 1 {
                result = 0;
            } result = 0 result 0 System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(" "));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }

            int limitOfbucketA = numbers.get(0);
            int limitOfbucketC = numbers.get(2);
            int inBucketA = numbers.get(1);

            int result = limitOfbucketA - inBucketA - limitOfbucketC;

            if (result < 0) {
                result *= -1;
            } else {
                result = 0;
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
}