import java.util.Scanner;

public class Main {
    public static int A = 0;
    public static int B = 0;
    public static int C = 0;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static int A = 0;
    public static int B = 0;
    public static int C = 0;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    }
} Main public static int A = 0; A 0 public static int B = 0; B 0 public static int C = 0; C 0 public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    } main {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc C = sc.nextInt() C sc.nextInt() sc.nextInt sc int output = C - (A - B); output C - (A - B) C (A - B) A B if (output < 0) output = 0; output < 0 output 0 output = 0 output 0 System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {
    public static int A = 0;
    public static int B = 0;
    public static int C = 0;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    }
} public class Main {
    public static int A = 0;
    public static int B = 0;
    public static int C = 0;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    }
} Main
import java.util.Scanner;

public class Main {
    public static int A = 0;
    public static int B = 0;
    public static int C = 0;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        A = sc.nextInt();
        B = sc.nextInt();
        C = sc.nextInt();

        int output = C - (A - B);
        if (output < 0) output = 0;

        System.out.println(output);
    }
}
