import java.util.*;

class Main {

    static int solve(int a, int b, int c) {
        int re =  c - (a-b);
        return re>0?re:0;
    }

    public static void main(String[] as) {
        Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();

        System.out.println(solve(a,b,c));
    }

}

 import java.util.*; util.* java class Main {

    static int solve(int a, int b, int c) {
        int re =  c - (a-b);
        return re>0?re:0;
    }

    public static void main(String[] as) {
        Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();

        System.out.println(solve(a,b,c));
    }

} Main static int solve(int a, int b, int c) {
        int re =  c - (a-b);
        return re>0?re:0;
    } solve {
        int re =  c - (a-b);
        return re>0?re:0;
    } int re =  c - (a-b); re c - (a-b) c (a-b) a b return re>0?re:0; re>0?re:0 re>0 re 0 re 0 int a a int b b int c c public static void main(String[] as) {
        Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();

        System.out.println(solve(a,b,c));
    } main {
        Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();

        System.out.println(solve(a,b,c));
    } Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int a=stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b=stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int c=stdIn.nextInt(); c stdIn.nextInt() stdIn.nextInt stdIn System.out.println(solve(a,b,c)) System.out.println System.out System System.out solve(a,b,c) solve a b c String[] as as
import java.util.*;

class Main {

    static int solve(int a, int b, int c) {
        int re =  c - (a-b);
        return re>0?re:0;
    }

    public static void main(String[] as) {
        Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();

        System.out.println(solve(a,b,c));
    }

}


