import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    } main {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner Integer b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner Integer c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner System.out.println(Math.max(c-(a-b),0)) System.out.println System.out System System.out Math.max(c-(a-b),0) Math.max Math c-(a-b) c (a-b) a b 0 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    }
} Main
import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer a = scanner.nextInt();
        Integer b = scanner.nextInt();
        Integer c = scanner.nextInt();
        System.out.println(Math.max(c-(a-b),0));
    }
}
