import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    } 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 sc.close() sc.close sc int remainTank2 = Math.max(C - Math.max(A - B, 0), 0); remainTank2 Math.max(C - Math.max(A - B, 0), 0) Math.max Math C - Math.max(A - B, 0) C Math.max(A - B, 0) Math.max Math A - B A B 0 0 System.out.println(remainTank2) System.out.println System.out System System.out remainTank2 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        sc.close();
        int remainTank2 = Math.max(C - Math.max(A - B, 0), 0);
        System.out.println(remainTank2);
    }
}
