import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  } main {
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int limit = sc.nextInt(); limit sc.nextInt() sc.nextInt sc int container1 = sc.nextInt(); container1 sc.nextInt() sc.nextInt sc int container2 = sc.nextInt(); container2 sc.nextInt() sc.nextInt sc int residual = container1 + container2 - limit; residual container1 + container2 - limit container1 + container2 container1 container2 limit int result = residual < 0 ? 0 : residual; result residual < 0 ? 0 : residual residual < 0 residual 0 0 residual System.out.print(result) System.out.print System.out System System.out result String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    // a
    int limit = sc.nextInt();
    // b
    int container1 = sc.nextInt();
    // c
    int container2 = sc.nextInt();

    int residual = container1 + container2 - limit;
    int result = residual < 0 ? 0 : residual; 
    System.out.print(result);
  }
}