import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int 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 if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b)); a - b >= c a - b a b c System.out.println(0) System.out.println System.out System System.out 0 System.out.println(c - (a - b)) System.out.println System.out System System.out c - (a - b) c (a - b) a b String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
        if (a - b >= c) System.out.println(0);
        else System.out.println(c - (a - b));
    }
}