import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    } 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 add = c; add c if(a > b) add = c - (a - b); a > b a b add = c - (a - b) add c - (a - b) c (a - b) a b if(add < 0) add = 0; add < 0 add 0 add = 0 add 0 System.out.print(add) System.out.print System.out System System.out add scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();        

        int add = c;
        if(a > b) add = c - (a - b);
        if(add < 0) add = 0;

        System.out.print(add);

        scan.close();
    }
}
