import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    }
} Main public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    } main {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    } Scanner std = new Scanner(System.in); std new Scanner(System.in) int a = std.nextInt(); a std.nextInt() std.nextInt std int b = std.nextInt(); b std.nextInt() std.nextInt std int c = std.nextInt(); c std.nextInt() std.nextInt std int diff = a - b; diff a - b a b int rest = c - diff; rest c - diff c diff if (rest < 0) {
            rest = 0;
        } rest < 0 rest 0 {
            rest = 0;
        } rest = 0 rest 0 System.out.println(rest) System.out.println System.out System System.out rest String[] args args public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner std = new Scanner(System.in);
        int a = std.nextInt();
        int b = std.nextInt();
        int c = std.nextInt();
        int diff = a - b;
        int rest = c - diff;
        if (rest < 0) {
            rest = 0;
        }

        System.out.println(rest);
    }
}
