import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	}
} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	} main {
		Scanner scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) final int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan final int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan final int C = scan.nextInt(); C scan.nextInt() scan.nextInt scan scan.close() scan.close scan int result = C - (A - B); result C - (A - B) C (A - B) A B if(result <  0) {
			result = 0;
		} result <  0 result 0 {
			result = 0;
		} result = 0 result 0 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 scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	}
} public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		final int A = scan.nextInt();
		final int B = scan.nextInt();
		final int C = scan.nextInt();
		scan.close();
		int result = C - (A - B);
		if(result <  0) {
			result = 0;
		}
		System.out.println(result);
	}
}