import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    }

    public static void check(String num) {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    }

    public static void check(String num) {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    } main {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String num = sc.nextLine(); num sc.nextLine() sc.nextLine sc check(num) check num String[] args args public static void check(String num) {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    } check {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    } String[] strs = num.split(" "); strs num.split(" ") num.split num " " int[] nums = new int[strs.length]; nums new int[strs.length] strs.length strs strs.length for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        } int i=0; int i=0; i 0 i<strs.length i strs.length strs strs.length i++ i++ i {
            nums[i] = Integer.parseInt(strs[i]);
        } {
            nums[i] = Integer.parseInt(strs[i]);
        } nums[i] = Integer.parseInt(strs[i]) nums[i] nums i Integer.parseInt(strs[i]) Integer.parseInt Integer strs[i] strs i int result = nums[2]-(nums[0]-nums[1]); result nums[2]-(nums[0]-nums[1]) nums[2] nums 2 (nums[0]-nums[1]) nums[0] nums 0 nums[1] nums 1 if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        } result > 0 result 0 {
            System.out.println(result);
        } System.out.println(result) System.out.println System.out System System.out result {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 String num num public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    }

    public static void check(String num) {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    }

    public static void check(String num) {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        check(num);
    }

    public static void check(String num) {
        String[] strs = num.split(" ");
        int[] nums = new int[strs.length];
        for(int i=0; i<strs.length; i++) {
            nums[i] = Integer.parseInt(strs[i]);
        }
        int result = nums[2]-(nums[0]-nums[1]);
        if(result > 0){
            System.out.println(result);
        } else {
            System.out.println(0);
        }
    }
}