import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int res = sc.nextInt() + sc.nextInt() - a;
        System.out.println(Math.max(res, 0));
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int res = sc.nextInt() + sc.nextInt() - a;
        System.out.println(Math.max(res, 0));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int res = sc.nextInt() + sc.nextInt() - a;
        System.out.println(Math.max(res, 0));
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int res = sc.nextInt() + sc.nextInt() - a;
        System.out.println(Math.max(res, 0));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int res = sc.nextInt() + sc.nextInt() - a; res sc.nextInt() + sc.nextInt() - a sc.nextInt() + sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc a System.out.println(Math.max(res, 0)) System.out.println System.out System System.out Math.max(res, 0) Math.max Math res 0 String[] args args
import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int res = sc.nextInt() + sc.nextInt() - a;
        System.out.println(Math.max(res, 0));
    }
}