
import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	}


	public int transfer(int a, int b, int c) {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	}

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

	public static void main(String[] args) {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	}


	public int transfer(int a, int b, int c) {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	}

} Main public static void main(String[] args) {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	} main {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	} try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		} InputMismatchException e {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		} System.out.println("整数を入力してください") System.out.println System.out System System.out "整数を入力してください" {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} 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 Main testA = new Main(); testA new Main() System.out.println(testA.transfer(a, b, c)) System.out.println System.out System System.out testA.transfer(a, b, c) testA.transfer testA a b c scanner.close() scanner.close scanner String[] args args public int transfer(int a, int b, int c) {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	} transfer {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	} if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		} a-b > c a-b a b c {
			return 0;
		} return 0; 0 {
			return c-(a-b);
		} return c-(a-b); c-(a-b) c (a-b) a b int a a int b b int c c public class Main {

	public static void main(String[] args) {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	}


	public int transfer(int a, int b, int c) {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	}

} public class Main {

	public static void main(String[] args) {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	}


	public int transfer(int a, int b, int c) {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	}

} Main

import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try {
			Scanner scanner = new Scanner(System.in);
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			int c = scanner.nextInt();

			Main testA = new Main();
			System.out.println(testA.transfer(a, b, c));

			scanner.close();

		} catch (InputMismatchException e) {
			// TODO: handle exception
			System.out.println("整数を入力してください");
		}
	}


	public int transfer(int a, int b, int c) {
//		if 容器2の水が全部入る、else 全部入らない
		if (a-b > c) {
			return 0;
		} else {
			return c-(a-b);
		}
	}

}

