import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner my_scanner = new Scanner(System.in);
        int A = my_scanner.nextInt();
        int B = my_scanner.nextInt();
        int C = my_scanner.nextInt();
        int a_empty = A - B;
        int c_remain = C - a_empty;
        if(c_remain < 0) {
          c_remain = 0;
        }
        System.out.print(c_remain);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner my_scanner = new Scanner(System.in);
        int A = my_scanner.nextInt();
        int B = my_scanner.nextInt();
        int C = my_scanner.nextInt();
        int a_empty = A - B;
        int c_remain = C - a_empty;
        if(c_remain < 0) {
          c_remain = 0;
        }
        System.out.print(c_remain);
    }
} Main public static void main(String[] args) {
        Scanner my_scanner = new Scanner(System.in);
        int A = my_scanner.nextInt();
        int B = my_scanner.nextInt();
        int C = my_scanner.nextInt();
        int a_empty = A - B;
        int c_remain = C - a_empty;
        if(c_remain < 0) {
          c_remain = 0;
        }
        System.out.print(c_remain);
    } main {
        Scanner my_scanner = new Scanner(System.in);
        int A = my_scanner.nextInt();
        int B = my_scanner.nextInt();
        int C = my_scanner.nextInt();
        int a_empty = A - B;
        int c_remain = C - a_empty;
        if(c_remain < 0) {
          c_remain = 0;
        }
        System.out.print(c_remain);
    } Scanner my_scanner = new Scanner(System.in); my_scanner new Scanner(System.in) int A = my_scanner.nextInt(); A my_scanner.nextInt() my_scanner.nextInt my_scanner int B = my_scanner.nextInt(); B my_scanner.nextInt() my_scanner.nextInt my_scanner int C = my_scanner.nextInt(); C my_scanner.nextInt() my_scanner.nextInt my_scanner int a_empty = A - B; a_empty A - B A B int c_remain = C - a_empty; c_remain C - a_empty C a_empty if(c_remain < 0) {
          c_remain = 0;
        } c_remain < 0 c_remain 0 {
          c_remain = 0;
        } c_remain = 0 c_remain 0 System.out.print(c_remain) System.out.print System.out System System.out c_remain String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner my_scanner = new Scanner(System.in);
        int A = my_scanner.nextInt();
        int B = my_scanner.nextInt();
        int C = my_scanner.nextInt();
        int a_empty = A - B;
        int c_remain = C - a_empty;
        if(c_remain < 0) {
          c_remain = 0;
        }
        System.out.print(c_remain);
    }
}
