
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	}

} Main public static void main(String[] args) {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	} main {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int c = s.nextInt(); c s.nextInt() s.nextInt s int capacity = a - b; capacity a - b a b int zan = c - capacity; zan c - capacity c capacity if(zan < 0) {
				zan = 0;
			} zan < 0 zan 0 {
				zan = 0;
			} zan = 0 zan 0 System.out.println(zan) System.out.println System.out System System.out zan String[] args args public class Main {

	public static void main(String[] args) {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	}

} public class Main {

	public static void main(String[] args) {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
			Scanner s = new Scanner(System.in);
			int a = s.nextInt();
			int b = s.nextInt();
			int c = s.nextInt();

			int capacity = a - b;
			int zan = c - capacity;
			if(zan < 0) {
				zan = 0;
			}
				System.out.println(zan);

	}

}
