
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	}

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

	public static void main(String[] args) {

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	}

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

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	} main {

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	} int a; a int b; b int c; c Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 sc.close() sc.close sc int ret = c - ( a - b ); ret c - ( a - b ) c ( a - b ) a b if(ret < 0) {
			ret = 0;
		} ret < 0 ret 0 {
			ret = 0;
		} ret = 0 ret 0 System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	}

} public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		int c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		sc.close();

		int ret = c - ( a - b );
		if(ret < 0) {
			ret = 0;
		}
		System.out.println(ret);

	}

}
