import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	} main {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner int d = b + c - a; d b + c - a b + c b c a if (d < 0) {
			d = 0;
		} d < 0 d 0 {
			d = 0;
		} d = 0 d 0 System.out.println(d) System.out.println System.out System System.out d String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		scanner.close();
		int d = b + c - a;
		if (d < 0) {
			d = 0;
		}
		System.out.println(d);

	}

}
