import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  }
} Main public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  } main {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a a b b c; c a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc c=sc.nextInt() c sc.nextInt() sc.nextInt sc int n=a-b; n a-b a b int m=c-n; m c-n c n if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    } m>0 m 0 {
      System.out.println(m);
    } System.out.println(m) System.out.println System.out System System.out m {
      System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a,b,c;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int n=a-b;
    int m=c-n;
    if(m>0){
      System.out.println(m);
    }else{
      System.out.println(0);
    }
  }
}
