import java.util.*;

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

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

    System.out.println(transferTask(a, b, c));
  }

  private static int transferTask(int a, int b, int c) {
    int result = c - (a - b);
    if(result < 0) {
      return 0;
    }
    return c - (a - b);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args){

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

    System.out.println(transferTask(a, b, c));
  }

  private static int transferTask(int a, int b, int c) {
    int result = c - (a - b);
    if(result < 0) {
      return 0;
    }
    return c - (a - b);
  }
} Main public static void main(String[] args){

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

    System.out.println(transferTask(a, b, c));
  } main {

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

    System.out.println(transferTask(a, b, c));
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan System.out.println(transferTask(a, b, c)) System.out.println System.out System System.out transferTask(a, b, c) transferTask a b c String[] args args private static int transferTask(int a, int b, int c) {
    int result = c - (a - b);
    if(result < 0) {
      return 0;
    }
    return c - (a - b);
  } transferTask {
    int result = c - (a - b);
    if(result < 0) {
      return 0;
    }
    return c - (a - b);
  } int result = c - (a - b); result c - (a - b) c (a - b) a b if(result < 0) {
      return 0;
    } result < 0 result 0 {
      return 0;
    } return 0; 0 return c - (a - b); c - (a - b) c (a - b) a b int a a int b b int c c
import java.util.*;

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

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

    System.out.println(transferTask(a, b, c));
  }

  private static int transferTask(int a, int b, int c) {
    int result = c - (a - b);
    if(result < 0) {
      return 0;
    }
    return c - (a - b);
  }
}