import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    } 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 empty = a - b; empty a - b a b if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        } c - empty < 0 c - empty c empty 0 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 {
            System.out.println(c - empty);   
        } System.out.println(c - empty) System.out.println System.out System System.out c - empty c empty String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        int empty = a - b;
        
        if (c - empty < 0) {
            System.out.println(0);
        } else {
            System.out.println(c - empty);   
        }
    }
}
