import java.util.Scanner;

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

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();
    int ans=c+b-a;
    if(ans<0){
      System.out.println(0);
    }else{
      System.out.println(c+b-a);
    }
  }
}