import java.util.*;
import java.util.stream.*;

public class Main {
	Scanner sc;
	int A,B,C;
//=============
// constructor
//
	public Main() {
		sc = new Scanner(System.in);
	}
	
//==================
// instance methods
//
	/**
	 * アルゴリズム本体
	 */
	private void calc() {
		int remain = A-B;
		out(Math.max(0, C - remain));
	}
	
	private void out(Object o) {
		System.out.println(o);
		System.out.flush();
	}
	
	private void input() {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	}
	
//======
// main
//
	public static void main(String[] args) {
		Main m = new Main();
		m.input();
		m.calc();
	}

} import java.util.*; util.* java import java.util.stream.*; stream.* java.util public class Main {
	Scanner sc;
	int A,B,C;
//=============
// constructor
//
	public Main() {
		sc = new Scanner(System.in);
	}
	
//==================
// instance methods
//
	/**
	 * アルゴリズム本体
	 */
	private void calc() {
		int remain = A-B;
		out(Math.max(0, C - remain));
	}
	
	private void out(Object o) {
		System.out.println(o);
		System.out.flush();
	}
	
	private void input() {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	}
	
//======
// main
//
	public static void main(String[] args) {
		Main m = new Main();
		m.input();
		m.calc();
	}

} Main Scanner sc; sc int A A B B C; C //=============
// constructor
//
	public Main() {
		sc = new Scanner(System.in);
	} Main {
		sc = new Scanner(System.in);
	} sc = new Scanner(System.in) sc new Scanner(System.in) /**
	 * アルゴリズム本体
	 */
	private void calc() {
		int remain = A-B;
		out(Math.max(0, C - remain));
	} calc {
		int remain = A-B;
		out(Math.max(0, C - remain));
	} int remain = A-B; remain A-B A B out(Math.max(0, C - remain)) out Math.max(0, C - remain) Math.max Math 0 C - remain C remain private void out(Object o) {
		System.out.println(o);
		System.out.flush();
	} out {
		System.out.println(o);
		System.out.flush();
	} System.out.println(o) System.out.println System.out System System.out o System.out.flush() System.out.flush System.out System System.out Object o o private void input() {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	} input {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	} A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc C = sc.nextInt() C sc.nextInt() sc.nextInt sc //======
// main
//
	public static void main(String[] args) {
		Main m = new Main();
		m.input();
		m.calc();
	} main {
		Main m = new Main();
		m.input();
		m.calc();
	} Main m = new Main(); m new Main() m.input() m.input m m.calc() m.calc m String[] args args public class Main {
	Scanner sc;
	int A,B,C;
//=============
// constructor
//
	public Main() {
		sc = new Scanner(System.in);
	}
	
//==================
// instance methods
//
	/**
	 * アルゴリズム本体
	 */
	private void calc() {
		int remain = A-B;
		out(Math.max(0, C - remain));
	}
	
	private void out(Object o) {
		System.out.println(o);
		System.out.flush();
	}
	
	private void input() {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	}
	
//======
// main
//
	public static void main(String[] args) {
		Main m = new Main();
		m.input();
		m.calc();
	}

} public class Main {
	Scanner sc;
	int A,B,C;
//=============
// constructor
//
	public Main() {
		sc = new Scanner(System.in);
	}
	
//==================
// instance methods
//
	/**
	 * アルゴリズム本体
	 */
	private void calc() {
		int remain = A-B;
		out(Math.max(0, C - remain));
	}
	
	private void out(Object o) {
		System.out.println(o);
		System.out.flush();
	}
	
	private void input() {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	}
	
//======
// main
//
	public static void main(String[] args) {
		Main m = new Main();
		m.input();
		m.calc();
	}

} Main
import java.util.*;
import java.util.stream.*;

public class Main {
	Scanner sc;
	int A,B,C;
//=============
// constructor
//
	public Main() {
		sc = new Scanner(System.in);
	}
	
//==================
// instance methods
//
	/**
	 * アルゴリズム本体
	 */
	private void calc() {
		int remain = A-B;
		out(Math.max(0, C - remain));
	}
	
	private void out(Object o) {
		System.out.println(o);
		System.out.flush();
	}
	
	private void input() {
		A = sc.nextInt();
		B = sc.nextInt();
		C = sc.nextInt();
	}
	
//======
// main
//
	public static void main(String[] args) {
		Main m = new Main();
		m.input();
		m.calc();
	}

}