import java.util.Scanner;

public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	}
} import java.util.Scanner; Scanner java.util public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	}
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	} main {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int intA = Integer.parseInt(line[0]); intA Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int intB = Integer.parseInt(line[1]); intB Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int intC = Integer.parseInt(line[2]); intC Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 2 int tmp1 = intA - intB; tmp1 intA - intB intA intB int tmp2 = intC - tmp1; tmp2 intC - tmp1 intC tmp1 int result = 0; result 0 if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	} tmp2 < 0 tmp2 0 {
    		result = 0;
    	} result = 0 result 0 {
    		result = tmp2;
    	} result = tmp2 result tmp2 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	}
} public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	}
} Main
import java.util.Scanner;

public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] line = sc.nextLine().split(" ");
    	int intA = Integer.parseInt(line[0]);
    	int intB = Integer.parseInt(line[1]);
    	int intC = Integer.parseInt(line[2]);
    	int tmp1 = intA - intB;
    	int tmp2 = intC - tmp1;
    	int result = 0;
    	if(tmp2 < 0) {
    		result = 0;
    	}else {
    		result = tmp2;
    	}
    	

    	System.out.println(result);
    	
	}
}