
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] lines = line.split(" "); lines line.split(" ") line.split line " " int A = 0; A 0 int B = 0; B 0 int C = 0; C 0 A = Integer.parseInt(lines[0]) A Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 B = Integer.parseInt(lines[1]) B Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 C = Integer.parseInt(lines[2]) C Integer.parseInt(lines[2]) Integer.parseInt Integer lines[2] lines 2 C = B + C C B + C B C if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		} A <= C A C {
			C = C - A;
		} C = C - A C C - A C A {
			C = 0;
		} C = 0 C 0 System.out.println(C) System.out.println System.out System System.out C String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	}

}
