import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





}
} import java.io.BufferedReader; BufferedReader java.io import java.io.*; io.* java import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Collections; Collections java.util import java.util.Arrays; Arrays java.util public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





}
} Main public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





} main {
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





} 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 List<String> list = new ArrayList<>(); list new ArrayList<>() int count = 0; count 0 if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    } b + c - a <= 0 b + c - a b + c b c a 0 {
        System.out.println(0);
    } System.out.println(0) System.out.println System.out System System.out 0 {
        System.out.println(b + c - a);
    } System.out.println(b + c - a) System.out.println System.out System System.out b + c - a b + c b c a final String[] args args public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





}
} public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





}
} Main
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    //int x = sc.nextInt();
    List<String> list = new ArrayList<>();
    int count = 0;

    if(b + c - a <= 0){
        System.out.println(0);
    }else{
        System.out.println(b + c - a);
    }
  

    


    


    

    
    
    



    





}
}