import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    } main {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = Integer.parseInt(scan.next()); A Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int B = Integer.parseInt(scan.next()); B Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int C = Integer.parseInt(scan.next()); C Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan scan.close() scan.close scan int res = C - (A - B); res C - (A - B) C (A - B) A B res = res < 0 ? 0 : res res res < 0 ? 0 : res res < 0 res 0 0 res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int A = Integer.parseInt(scan.next()); 
        int B = Integer.parseInt(scan.next());
        int C = Integer.parseInt(scan.next());
        scan.close();
        
        int res = C - (A - B);
        res = res < 0 ? 0 : res;
        System.out.println(res);
    }
}