import java.util.*;
public class Main{
static int A= 0;
static int B= 0;
static int C= 0;
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		A=sc.nextInt();
		B=sc.nextInt();
		C=sc.nextInt();
		int t=A-B;
		int ans =C-t;
		if(ans<0) {
			System.out.println("0");
		}else {
		System.out.println(ans);
		}

}
} import java.util.*; util.* java public class Main{
static int A= 0;
static int B= 0;
static int C= 0;
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		A=sc.nextInt();
		B=sc.nextInt();
		C=sc.nextInt();
		int t=A-B;
		int ans =C-t;
		if(ans<0) {
			System.out.println("0");
		}else {
		System.out.println(ans);
		}

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

} main {
		Scanner sc = new Scanner(System.in);
		A=sc.nextInt();
		B=sc.nextInt();
		C=sc.nextInt();
		int t=A-B;
		int ans =C-t;
		if(ans<0) {
			System.out.println("0");
		}else {
		System.out.println(ans);
		}

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

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

}
} Main
import java.util.*;
public class Main{
static int A= 0;
static int B= 0;
static int C= 0;
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		A=sc.nextInt();
		B=sc.nextInt();
		C=sc.nextInt();
		int t=A-B;
		int ans =C-t;
		if(ans<0) {
			System.out.println("0");
		}else {
		System.out.println(ans);
		}

}
}
