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

public class Main {

    public static void main(String[] args) throws Exception {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    }

} import java.io.BufferedReader; BufferedReader 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 public class Main {

    public static void main(String[] args) throws Exception {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    }

} Main public static void main(String[] args) throws Exception {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    } main {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    } InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader reader = new BufferedReader(is); reader new BufferedReader(is) List<String> mylist = new ArrayList<>(); mylist new ArrayList<>() String strinput = reader.readLine(); strinput reader.readLine() reader.readLine reader while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        } strinput != null strinput null {

            mylist.add(strinput);
            strinput = reader.readLine();

        } mylist.add(strinput) mylist.add mylist strinput strinput = reader.readLine() strinput reader.readLine() reader.readLine reader List<String> list01 = Arrays.asList(mylist.get(0).split(" ")); list01 Arrays.asList(mylist.get(0).split(" ")) Arrays.asList Arrays mylist.get(0).split(" ") mylist.get(0).split mylist.get(0) mylist.get mylist 0 " " int a = Integer.valueOf(list01.get(0)); a Integer.valueOf(list01.get(0)) Integer.valueOf Integer list01.get(0) list01.get list01 0 int b = Integer.valueOf(list01.get(1)); b Integer.valueOf(list01.get(1)) Integer.valueOf Integer list01.get(1) list01.get list01 1 int c = Integer.valueOf(list01.get(2)); c Integer.valueOf(list01.get(2)) Integer.valueOf Integer list01.get(2) list01.get list01 2 int nokori = a - b > 0 ? a - b : 0; nokori a - b > 0 ? a - b : 0 a - b > 0 a - b a b 0 a - b a b 0 if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        } nokori == 0 nokori 0 {
            System.out.println(c);
        } System.out.println(c) System.out.println System.out System System.out c {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        } if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            } c >= nokori c nokori {
                System.out.println(c - nokori);
            } System.out.println(c - nokori) System.out.println System.out System System.out c - nokori c nokori {
                System.out.println(0);
            } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

    public static void main(String[] args) throws Exception {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    }

} public class Main {

    public static void main(String[] args) throws Exception {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    }

} Main

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

public class Main {

    public static void main(String[] args) throws Exception {
        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        List<String> list01 = Arrays.asList(mylist.get(0).split(" "));

        //String arr[] = mylist.get(0).split(" ");
        int a = Integer.valueOf(list01.get(0));
        int b = Integer.valueOf(list01.get(1));
        int c = Integer.valueOf(list01.get(2));

        int nokori = a - b > 0 ? a - b : 0;

        if (nokori == 0) {
            System.out.println(c);
        } else {
            if (c >= nokori) {
                System.out.println(c - nokori);
            } else {
                System.out.println(0);
            }

        }
    }

}