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