import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	}
	public static int sample() {
		return 1;
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	}
	public static int sample() {
		return 1;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	} main {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int[] array = new int[n]; array new int[n] n if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		} c-(n-m)>=0 c-(n-m) c (n-m) n m 0 {
		System.out.println(c-(n-m));
		} System.out.println(c-(n-m)) System.out.println System.out System System.out c-(n-m) c (n-m) n m {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 String[] args args public static int sample() {
		return 1;
	} sample {
		return 1;
	} return 1; 1 public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	}
	public static int sample() {
		return 1;
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	}
	public static int sample() {
		return 1;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//String s = sc.next();
		int n = sc.nextInt(),m = sc.nextInt(),c = sc.nextInt();
		int[] array = new int[n];

		/*for(int i=0;i<n;i++) {
			array[i] = sc.nextInt();
		}*/
		if(c-(n-m)>=0) {
		System.out.println(c-(n-m));
		}else {
			System.out.println(0);
		}

	}
	public static int sample() {
		return 1;
	}

}
