import java.util.*;
 
public class Main {
  public static void main (String[] arg) {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  }
} import java.util.*; util.* java public class Main {
  public static void main (String[] arg) {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  }
} Main public static void main (String[] arg) {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  } main {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  } 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 D = 0; D 0 D = B + C - A D B + C - A B + C B C A if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    } D >= 0 D 0 {
      System.out.println(D);
    } System.out.println(D) System.out.println System.out System System.out D {
      System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 String[] arg arg public class Main {
  public static void main (String[] arg) {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  }
} public class Main {
  public static void main (String[] arg) {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  }
} Main
import java.util.*;
 
public class Main {
  public static void main (String[] arg) {
    Scanner scan = new Scanner(System.in);
    int A = scan.nextInt();
    int B = scan.nextInt();
    int C = scan.nextInt();
    int D = 0;
    
    D = B + C - A;
    if(D >= 0){
      System.out.println(D);
    } else {
      System.out.println(0);
    }

  }
}