import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	} main {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int ab=scan.nextInt()-scan.nextInt(); ab scan.nextInt()-scan.nextInt() scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan int c =scan.nextInt()-ab; c scan.nextInt()-ab scan.nextInt() scan.nextInt scan ab if(c<=0){
			c=0;
		} c<=0 c 0 {
			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) {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int ab=scan.nextInt()-scan.nextInt();
		int c =scan.nextInt()-ab;
		if(c<=0){
			c=0;
		}
		System.out.println(c);
	}
}