import java.io.*;
import java.lang.*;
import java.util.*;

class Main {

   
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int A = input.nextInt();
         int B = input.nextInt();
         int C = input.nextInt();
         
         int N = A-B;
         int count = C-N;
         if(count < 0)
         {
             System.out.println("0");
         }
         else
         {
             System.out.println(count);
         }
         
    }
    
} import java.io.*; io.* java import java.lang.*; lang.* java import java.util.*; util.* java class Main {

   
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int A = input.nextInt();
         int B = input.nextInt();
         int C = input.nextInt();
         
         int N = A-B;
         int count = C-N;
         if(count < 0)
         {
             System.out.println("0");
         }
         else
         {
             System.out.println(count);
         }
         
    }
    
} Main public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int A = input.nextInt();
         int B = input.nextInt();
         int C = input.nextInt();
         
         int N = A-B;
         int count = C-N;
         if(count < 0)
         {
             System.out.println("0");
         }
         else
         {
             System.out.println(count);
         }
         
    } main {
         Scanner input = new Scanner(System.in);
         int A = input.nextInt();
         int B = input.nextInt();
         int C = input.nextInt();
         
         int N = A-B;
         int count = C-N;
         if(count < 0)
         {
             System.out.println("0");
         }
         else
         {
             System.out.println(count);
         }
         
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int A = input.nextInt(); A input.nextInt() input.nextInt input int B = input.nextInt(); B input.nextInt() input.nextInt input int C = input.nextInt(); C input.nextInt() input.nextInt input int N = A-B; N A-B A B int count = C-N; count C-N C N if(count < 0)
         {
             System.out.println("0");
         }
         else
         {
             System.out.println(count);
         } count < 0 count 0 {
             System.out.println("0");
         } System.out.println("0") System.out.println System.out System System.out "0" {
             System.out.println(count);
         } System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.io.*;
import java.lang.*;
import java.util.*;

class Main {

   
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int A = input.nextInt();
         int B = input.nextInt();
         int C = input.nextInt();
         
         int N = A-B;
         int count = C-N;
         if(count < 0)
         {
             System.out.println("0");
         }
         else
         {
             System.out.println(count);
         }
         
    }
    
}
