import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    }

    private static int problem136a(int a, int b, int c) {
        return Math.max((c - (a - b)), 0);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    }

    private static int problem136a(int a, int b, int c) {
        return Math.max((c - (a - b)), 0);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] abc = br.readLine().split(" "); abc br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(abc[0]); a Integer.parseInt(abc[0]) Integer.parseInt Integer abc[0] abc 0 int b = Integer.parseInt(abc[1]); b Integer.parseInt(abc[1]) Integer.parseInt Integer abc[1] abc 1 int c = Integer.parseInt(abc[2]); c Integer.parseInt(abc[2]) Integer.parseInt Integer abc[2] abc 2 System.out.println(problem136a(a, b, c)) System.out.println System.out System System.out problem136a(a, b, c) problem136a a b c String[] args args private static int problem136a(int a, int b, int c) {
        return Math.max((c - (a - b)), 0);
    } problem136a {
        return Math.max((c - (a - b)), 0);
    } return Math.max((c - (a - b)), 0); Math.max((c - (a - b)), 0) Math.max Math (c - (a - b)) c (a - b) a b 0 int a a int b b int c c public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    }

    private static int problem136a(int a, int b, int c) {
        return Math.max((c - (a - b)), 0);
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    }

    private static int problem136a(int a, int b, int c) {
        return Math.max((c - (a - b)), 0);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(" ");
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);
        int c = Integer.parseInt(abc[2]);
        System.out.println(problem136a(a, b, c));
    }

    private static int problem136a(int a, int b, int c) {
        return Math.max((c - (a - b)), 0);
    }
}