import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	}
	
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	}
	
} Main public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	} main {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	} Scanner sn = new Scanner(System.in); sn new Scanner(System.in) Integer a = sn.nextInt(); a sn.nextInt() sn.nextInt sn Integer b = sn.nextInt(); b sn.nextInt() sn.nextInt sn Integer c = sn.nextInt(); c sn.nextInt() sn.nextInt sn int x = c - (a - b); x c - (a - b) c (a - b) a b System.out.println((x < 0) ? 0 : x) System.out.println System.out System System.out (x < 0) ? 0 : x (x < 0) x 0 0 x String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	}
	
} public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	}
	
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		Integer a = sn.nextInt();
		Integer b = sn.nextInt();
		Integer c = sn.nextInt();
		
		int x = c - (a - b);
		
		System.out.println((x < 0) ? 0 : x);
	}
	
}