import java.util.*;
import static java.lang.Integer.*;
//import static java.lang.Long.*;
//import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	}
} import java.util.*; util.* java import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	}
} Main public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	} main {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	} int i i j; j Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = parseInt(sc.next()); a parseInt(sc.next()) parseInt sc.next() sc.next sc int b = parseInt(sc.next()); b parseInt(sc.next()) parseInt sc.next() sc.next sc int c = parseInt(sc.next()); c parseInt(sc.next()) parseInt sc.next() sc.next sc sc.close() sc.close 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 out.println(ans) out.println out ans String[] args args public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	}
} Main
import java.util.*;
import static java.lang.Integer.*;
//import static java.lang.Long.*;
//import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(System.in);
		int a = parseInt(sc.next());
		int b = parseInt(sc.next());
		int c = parseInt(sc.next());
		sc.close();
		int ans = c-(a-b);
		if(ans<0)ans=0;
		out.println(ans);
	}
}
