import 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 d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	}
} import java.util.*; util.* java 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 d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	}
} 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 d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	} main {
		Scanner sc = new Scanner(System.in);
				int a = sc.nextInt();
				int b = sc.nextInt();
				int c = sc.nextInt();
				int d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	} 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 d = a-b; d a-b a b int e = c-d; e c-d c d if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      } e<=0 e 0 {
        System.out.println('0');
      } System.out.println('0') System.out.println System.out System System.out '0' {
				System.out.println(e);
      } System.out.println(e) System.out.println System.out System System.out e 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 d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	}
} 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 d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	}
} Main
import 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 d = a-b;
				int e = c-d;
      if(e<=0){
        System.out.println('0');
      }else{
				System.out.println(e);
      }
	}
}