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