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

public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    }
} Main public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    } main {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strArray[] = br.readLine().split(" "); strArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int A A B B C C result; result A = Integer.parseInt(strArray[0]) A Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 B = Integer.parseInt(strArray[1]) B Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 C = Integer.parseInt(strArray[2]) C Integer.parseInt(strArray[2]) Integer.parseInt Integer strArray[2] strArray 2 result = C - (A - B) result C - (A - B) C (A - B) A B System.out.println(result >= 0 ? result : 0) System.out.println System.out System System.out result >= 0 ? result : 0 result >= 0 result 0 result 0 String args[] args public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    }
} public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A, B, C, result;
	A = Integer.parseInt(strArray[0]);
	B = Integer.parseInt(strArray[1]);
	C = Integer.parseInt(strArray[2]);
	result = C - (A - B);
	System.out.println(result >= 0 ? result : 0);

    }
}