import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	}
} Main public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputP = scanner.nextLine(); inputP scanner.nextLine() scanner.nextLine scanner String[] pStr = inputP.split(" ", 0); pStr inputP.split(" ", 0) inputP.split inputP " " 0 int n = pStr.length; n pStr.length pStr pStr.length int pInt[] = new int[n]; pInt new int[n] n for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			pInt[i] = Integer.parseInt(pStr[i]);
		} {
			pInt[i] = Integer.parseInt(pStr[i]);
		} pInt[i] = Integer.parseInt(pStr[i]) pInt[i] pInt i Integer.parseInt(pStr[i]) Integer.parseInt Integer pStr[i] pStr i int accept = pInt[0] - pInt[1]; accept pInt[0] - pInt[1] pInt[0] pInt 0 pInt[1] pInt 1 if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		} pInt[2] > accept pInt[2] pInt 2 accept {
			System.out.println(pInt[2] - accept);
		} System.out.println(pInt[2] - accept) System.out.println System.out System System.out pInt[2] - accept pInt[2] pInt 2 accept {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		String inputP = scanner.nextLine();
		String[] pStr = inputP.split(" ", 0);
		int n = pStr.length;
		
		int pInt[] = new int[n];
		for(int i=0;i<n;i++){
			pInt[i] = Integer.parseInt(pStr[i]);
		}
		
		int accept = pInt[0] - pInt[1];
		
		if(pInt[2] > accept) {
			System.out.println(pInt[2] - accept);
		} else {
			System.out.println(0);
		}
	}
}