import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		
		int num4 = num1-num2;
		int ans = num3-num4;
		
		if(ans<0){
			ans = 0;
		}
		
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		
		int num4 = num1-num2;
		int ans = num3-num4;
		
		if(ans<0){
			ans = 0;
		}
		
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		
		int num4 = num1-num2;
		int ans = num3-num4;
		
		if(ans<0){
			ans = 0;
		}
		
		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		
		int num4 = num1-num2;
		int ans = num3-num4;
		
		if(ans<0){
			ans = 0;
		}
		
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int num3 = scan.nextInt(); num3 scan.nextInt() scan.nextInt scan int num4 = num1-num2; num4 num1-num2 num1 num2 int ans = num3-num4; ans num3-num4 num3 num4 if(ans<0){
			ans = 0;
		} ans<0 ans 0 {
			ans = 0;
		} ans = 0 ans 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		
		int num4 = num1-num2;
		int ans = num3-num4;
		
		if(ans<0){
			ans = 0;
		}
		
		System.out.println(ans);
	}
}