import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	}

} 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();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int cap1 = A-B; cap1 A-B A B int use = 0; use 0 if(cap1<C){
			use = cap1;
		}else{
			use = C;
		} cap1<C cap1 C {
			use = cap1;
		} use = cap1 use cap1 {
			use = C;
		} use = C use C System.out.println(C-use) System.out.println System.out System System.out C-use C use String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int cap1 = A-B;
		
		int use = 0;
		
		if(cap1<C){
			use = cap1;
		}else{
			use = C;
		}
		
		System.out.println(C-use);
	}

}