import java.util.Scanner;

public class Main {
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	}
} Main public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	} main {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int remnant = a - b; remnant a - b a b c -= remnant c remnant c = c < 0 ? 0 : c c c < 0 ? 0 : c c < 0 c 0 0 c 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[]){

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	}
} public class Main {
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int remnant = a - b;

		c -= remnant;
		c = c < 0 ? 0 : c;

		System.out.println(c);

	}
}
