import java.util.Scanner;
import java.io.*;

public class Main{
    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    }

} import java.util.Scanner; Scanner java.util import java.io.*; io.* java public class Main{
    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    }

} Main public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    } main {
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    } Scanner scan_A = new Scanner(System.in); scan_A new Scanner(System.in) int  str_A = scan_A.nextInt(); str_A scan_A.nextInt() scan_A.nextInt scan_A int str_B = scan_A.nextInt(); str_B scan_A.nextInt() scan_A.nextInt scan_A int str_C = scan_A.nextInt(); str_C scan_A.nextInt() scan_A.nextInt scan_A int ans; ans int E = str_A - str_B; E str_A - str_B str_A str_B if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        } E >str_C E str_C {
            ans = 0;
        } ans = 0 ans 0 {
           
            ans = str_C -E;
        } ans = str_C -E ans str_C -E str_C E System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main{
    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    }

} public class Main{
    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    }

} Main
import java.util.Scanner;
import java.io.*;

public class Main{
    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

       
        int str_B = scan_A.nextInt();

        
        int str_C = scan_A.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E >str_C ){
            ans = 0;
        }else{
           
            ans = str_C -E;
        }
       
               
        System.out.println(ans);
    }

}