import java.util.*;
public class Main {
    public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    }
} Main public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    } main {
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    } Scanner s=new Scanner(System.in); s new Scanner(System.in) int A=s.nextInt(); A s.nextInt() s.nextInt s int B=s.nextInt(); B s.nextInt() s.nextInt s int C=s.nextInt(); C s.nextInt() s.nextInt s int ans=C-(A-B); ans C-(A-B) C (A-B) A B if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     } ans<0 ans 0 System.out.println(0) System.out.println System.out System System.out 0 {
         System.out.print(ans);
     } System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    }
} public class Main {
    public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    }
}