import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    }
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    } main {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan a -= scan.nextInt() a scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan System.out.println(Math.min(a, c) == c ? 0 : c - a) System.out.println System.out System System.out Math.min(a, c) == c ? 0 : c - a Math.min(a, c) == c Math.min(a, c) Math.min Math a c c 0 c - a c a String[] args args public class Main {
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    }
} public class Main {
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	a -= scan.nextInt();
	int c = scan.nextInt();

	System.out.println(Math.min(a, c) == c ? 0 : c - a);
    }
}