import java.util.*;
public class Main{
  
  public static void main(String[] args){
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  }
  
} import java.util.*; util.* java public class Main{
  
  public static void main(String[] args){
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  }
  
} Main public static void main(String[] args){
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  } main {
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in int C = in.nextInt(); C in.nextInt() in.nextInt in int tobeFilled = A-B>0?A-B:0; tobeFilled A-B>0?A-B:0 A-B>0 A-B A B 0 A-B A B 0 int remaining = C>tobeFilled?C-tobeFilled:0; remaining C>tobeFilled?C-tobeFilled:0 C>tobeFilled C tobeFilled C-tobeFilled C tobeFilled 0 System.out.println(remaining) System.out.println System.out System System.out remaining String[] args args public class Main{
  
  public static void main(String[] args){
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  }
  
} public class Main{
  
  public static void main(String[] args){
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  }
  
} Main
import java.util.*;
public class Main{
  
  public static void main(String[] args){
    
    Scanner in = new Scanner(System.in);
    int A = in.nextInt();
    int B = in.nextInt();
    int C = in.nextInt();
    int tobeFilled = A-B>0?A-B:0;
    int remaining = C>tobeFilled?C-tobeFilled:0;
    System.out.println(remaining);
    
  }
  
}