import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	} main {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int r = sc.nextInt() - sc.nextInt(); r sc.nextInt() - sc.nextInt() sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc System.out.println(r < i ? i - r : 0) System.out.println System.out System System.out r < i ? i - r : 0 r < i r i i - r i r 0 String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int r = sc.nextInt() - sc.nextInt();
		int i = sc.nextInt();

		System.out.println(r < i ? i - r : 0);
	}
}