import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    } main {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputStr[] = scanner.nextLine().split(" "); inputStr scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int a = Integer.valueOf(inputStr[0]); a Integer.valueOf(inputStr[0]) Integer.valueOf Integer inputStr[0] inputStr 0 int b = Integer.valueOf(inputStr[1]); b Integer.valueOf(inputStr[1]) Integer.valueOf Integer inputStr[1] inputStr 1 int c = Integer.valueOf(inputStr[2]); c Integer.valueOf(inputStr[2]) Integer.valueOf Integer inputStr[2] inputStr 2 int ans = c - (a - b); ans c - (a - b) c (a - b) a b System.out.println(ans < 0? 0: ans) System.out.println System.out System System.out ans < 0? 0: ans ans < 0 ans 0 0 ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputStr[] = scanner.nextLine().split(" ");
        int a = Integer.valueOf(inputStr[0]);
        int b = Integer.valueOf(inputStr[1]);
        int c = Integer.valueOf(inputStr[2]);
        int ans = c - (a - b);
        System.out.println(ans < 0? 0: ans);
    }
}