import java.util.*;

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

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int d = a-b;
        
        if (d > c) {
            System.out.println("0");
        } else {
            System.out.println(c-d);
        }
    }
}
