import java.util.*;
public class Main{
	public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
}
} import java.util.*; util.* java public class Main{
	public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
}
} Main public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
} main {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
} 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 diff = a-b; diff a-b a b int hold=c-(Math.min(diff,c)); hold c-(Math.min(diff,c)) c (Math.min(diff,c)) Math.min Math diff c System.out.println(hold) System.out.println System.out System System.out hold String sp[] sp public class Main{
	public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
}
} public class Main{
	public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
}
} Main
import java.util.*;
public class Main{
	public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
}
}
