import java.util.*;
import java.io.*;
public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    }
} Main public static void main(String[] args)throws Exception{
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    } main {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    } 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 sc.close() sc.close sc int gt=c-(a-b); gt c-(a-b) c (a-b) a b if(gt<0)gt=0; gt<0 gt 0 gt=0 gt 0 System.out.println(gt) System.out.println System.out System System.out gt String[] args args public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    }
} public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    }
} Main
import java.util.*;
import java.io.*;
public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        sc.close();
        int gt=c-(a-b);
        if(gt<0)gt=0;
        System.out.println(gt);
    }
}