import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    }


}
 import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    }


} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    } main {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int nowA = a - b; nowA a - b a b int nowc = c - nowA; nowc c - nowA c nowA if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        } nowc < 0 nowc 0 {
            System.out.print(0);
        } System.out.print(0) System.out.print System.out System System.out 0 {
            System.out.print(nowc);
        } System.out.print(nowc) System.out.print System.out System System.out nowc String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    }


} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    }


} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int nowA = a - b;

        int nowc = c - nowA;

        if ( nowc < 0) {
            System.out.print(0);
        }else {
            System.out.print(nowc);
        }

    }


}

