import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String nums[] = line.split(" "); nums line.split(" ") line.split line " " int A = Integer.parseInt(nums[0]); A Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 int B = Integer.parseInt(nums[1]); B Integer.parseInt(nums[1]) Integer.parseInt Integer nums[1] nums 1 int C = Integer.parseInt(nums[2]); C Integer.parseInt(nums[2]) Integer.parseInt Integer nums[2] nums 2 int amount = C - (A - B); amount C - (A - B) C (A - B) A B if (amount < 0) {
          amount = 0;
        } amount < 0 amount 0 {
          amount = 0;
        } amount = 0 amount 0 System.out.println(amount) System.out.println System.out System System.out amount String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String nums[] = line.split(" ");
        int A = Integer.parseInt(nums[0]);
        int B = Integer.parseInt(nums[1]);
        int C = Integer.parseInt(nums[2]);
        int amount = C - (A - B);
        if (amount < 0) {
          amount = 0;
        }
        System.out.println(amount);
    }
}