import java.io.*;

public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  }
} import java.io.*; io.* java public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  }
} Main public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] nums = new int[3]; nums new int[3] 3 for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i nums[i] = Integer.parseInt(line[i]); nums[i] = Integer.parseInt(line[i]) nums[i] nums i Integer.parseInt(line[i]) Integer.parseInt Integer line[i] line i System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0)) System.out.println System.out System System.out Math.max(nums[2]-(nums[0]-nums[1]), 0) Math.max Math nums[2]-(nums[0]-nums[1]) nums[2] nums 2 (nums[0]-nums[1]) nums[0] nums 0 nums[1] nums 1 0 String[] args args public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  }
} public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  }
} Main
import java.io.*;

public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line = br.readLine().split(" ");
    int[] nums = new int[3];
    for(int i=0; i<3; i++)
      nums[i] = Integer.parseInt(line[i]);
    System.out.println(Math.max(nums[2]-(nums[0]-nums[1]), 0));
  }
}
