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

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  }
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  } main {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int A = in.nextInt() A in.nextInt() in.nextInt in B = in.nextInt() B in.nextInt() in.nextInt in C = in.nextInt(); C in.nextInt() in.nextInt in System.out.println(Math.max(0, B + C - A)) System.out.println System.out System System.out Math.max(0, B + C - A) Math.max Math 0 B + C - A B + C B C A String[] args args public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  }
} public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  }
} Main
import java.util.*;
import java.util.stream.*;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int A = in.nextInt(), B = in.nextInt(), C = in.nextInt();
    System.out.println(Math.max(0, B + C - A));
  }
}
