import java.util.Scanner;

public class Main{
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  }
} Main public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  } main {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int D = A - B; D A - B A B int E = C - D; E C - D C D if(E < 0){
      E = 0;
    } E < 0 E 0 {
      E = 0;
    } E = 0 E 0 System.out.println(E) System.out.println System.out System System.out E String[] args args public class Main{
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  }
} public class Main{
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();

    int D = A - B;

    int E = C - D;

    if(E < 0){
      E = 0;
    }
    System.out.println(E);
    
  }
}