import java.util.*;

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 Ans = C - (A-B);
      if (Ans < 0) {
    	  Ans = 0;
      }
      
      
      System.out.print(Ans);

  }
} import java.util.*; util.* java 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 Ans = C - (A-B);
      if (Ans < 0) {
    	  Ans = 0;
      }
      
      
      System.out.print(Ans);

  }
} 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 Ans = C - (A-B);
      if (Ans < 0) {
    	  Ans = 0;
      }
      
      
      System.out.print(Ans);

  } main {
      Scanner sc = new Scanner(System.in);
      int A = sc.nextInt();
      int B = sc.nextInt();
      int C = sc.nextInt();
      
      int Ans = C - (A-B);
      if (Ans < 0) {
    	  Ans = 0;
      }
      
      
      System.out.print(Ans);

  } 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 Ans = C - (A-B); Ans C - (A-B) C (A-B) A B if (Ans < 0) {
    	  Ans = 0;
      } Ans < 0 Ans 0 {
    	  Ans = 0;
      } Ans = 0 Ans 0 System.out.print(Ans) System.out.print System.out System System.out Ans String[] args args
import java.util.*;

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 Ans = C - (A-B);
      if (Ans < 0) {
    	  Ans = 0;
      }
      
      
      System.out.print(Ans);

  }
}