import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    }
} Main public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    } main {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner String[] values = input.split(" "); values input.split(" ") input.split input " " int A = Integer.parseInt(values[0]); A Integer.parseInt(values[0]) Integer.parseInt Integer values[0] values 0 int B = Integer.parseInt(values[1]); B Integer.parseInt(values[1]) Integer.parseInt Integer values[1] values 1 int C = Integer.parseInt(values[2]); C Integer.parseInt(values[2]) Integer.parseInt Integer values[2] values 2 int x = A - B; x A - B A B int answer; answer if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        } x <= C x C {
            answer = C - x;
        } answer = C - x answer C - x C x {
            answer = 0;
        } answer = 0 answer 0 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    }
} public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        String input = scanner.nextLine();

        String[] values = input.split(" ");
        int A = Integer.parseInt(values[0]);
        int B = Integer.parseInt(values[1]);
        int C = Integer.parseInt(values[2]);

        int x = A - B;
        int answer;
        if (x <= C) {
            answer = C - x;
        } else {
            answer = 0;
        }

        System.out.println(answer);
    }
}
