import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] line1 = line.split(" "); line1 line.split(" ") line.split line " " int a = Integer.parseInt(line1[0]); a Integer.parseInt(line1[0]) Integer.parseInt Integer line1[0] line1 0 int b = Integer.parseInt(line1[1]); b Integer.parseInt(line1[1]) Integer.parseInt Integer line1[1] line1 1 int c = Integer.parseInt(line1[2]); c Integer.parseInt(line1[2]) Integer.parseInt Integer line1[2] line1 2 int d = c - (a - b); d c - (a - b) c (a - b) a b if(d <= 0)  d = 0; d <= 0 d 0 d = 0 d 0 System.out.println(d) System.out.println System.out System System.out d String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] line1 = line.split(" ");
        int a = Integer.parseInt(line1[0]);
        int b = Integer.parseInt(line1[1]);
        int c = Integer.parseInt(line1[2]);
        int d = c - (a - b);
        if(d <= 0)  d = 0;
        System.out.println(d);
    }
}