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 now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	}
} 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 now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	}
} 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 now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	} main {
		Scanner in = new Scanner(System.in);
		
		int a = in.nextInt();
      	int b = in.nextInt();
      	int c = in.nextInt();
      
      int now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	} 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 now = a-b; now a-b a b int ans = c-now; ans c-now c now 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 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 now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	}
} 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 now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	}
} 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 now = a-b;
      int ans = c-now;
      
      if(ans<0){ans=0;}
      System.out.print(ans);
      
	}
}
