import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{

    public static void main(String[] args)  throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        //int t = Integer.parseInt(reader.readLine());

        String s = reader.readLine();
        String[] inp = s.split(" ");

        int a = Integer.parseInt(inp[0]);
        int b = Integer.parseInt(inp[1]);
        int c = Integer.parseInt(inp[2]);

        int tr = a-b;

        int x = tr-c;

        if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{

    public static void main(String[] args)  throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        //int t = Integer.parseInt(reader.readLine());

        String s = reader.readLine();
        String[] inp = s.split(" ");

        int a = Integer.parseInt(inp[0]);
        int b = Integer.parseInt(inp[1]);
        int c = Integer.parseInt(inp[2]);

        int tr = a-b;

        int x = tr-c;

        if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        }
    }
} Main public static void main(String[] args)  throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        //int t = Integer.parseInt(reader.readLine());

        String s = reader.readLine();
        String[] inp = s.split(" ");

        int a = Integer.parseInt(inp[0]);
        int b = Integer.parseInt(inp[1]);
        int c = Integer.parseInt(inp[2]);

        int tr = a-b;

        int x = tr-c;

        if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        }
    } main {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        //int t = Integer.parseInt(reader.readLine());

        String s = reader.readLine();
        String[] inp = s.split(" ");

        int a = Integer.parseInt(inp[0]);
        int b = Integer.parseInt(inp[1]);
        int c = Integer.parseInt(inp[2]);

        int tr = a-b;

        int x = tr-c;

        if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String s = reader.readLine(); s reader.readLine() reader.readLine reader String[] inp = s.split(" "); inp s.split(" ") s.split s " " int a = Integer.parseInt(inp[0]); a Integer.parseInt(inp[0]) Integer.parseInt Integer inp[0] inp 0 int b = Integer.parseInt(inp[1]); b Integer.parseInt(inp[1]) Integer.parseInt Integer inp[1] inp 1 int c = Integer.parseInt(inp[2]); c Integer.parseInt(inp[2]) Integer.parseInt Integer inp[2] inp 2 int tr = a-b; tr a-b a b int x = tr-c; x tr-c tr c if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        } x>=0 x 0 {
            System.out.println("0");
        } System.out.println("0") System.out.println System.out System System.out "0" {
            System.out.println(c-tr);
        } System.out.println(c-tr) System.out.println System.out System System.out c-tr c tr String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{

    public static void main(String[] args)  throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        //int t = Integer.parseInt(reader.readLine());

        String s = reader.readLine();
        String[] inp = s.split(" ");

        int a = Integer.parseInt(inp[0]);
        int b = Integer.parseInt(inp[1]);
        int c = Integer.parseInt(inp[2]);

        int tr = a-b;

        int x = tr-c;

        if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        }
    }
}
