import java.util.*;
class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next()),
        b = Integer.parseInt(sc.next()),
        c = Integer.parseInt(sc.next());
    System.out.println(
      Math.max(0, c - Math.max(0, a - b))
    );
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next()),
        b = Integer.parseInt(sc.next()),
        c = Integer.parseInt(sc.next());
    System.out.println(
      Math.max(0, c - Math.max(0, a - b))
    );
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next()),
        b = Integer.parseInt(sc.next()),
        c = Integer.parseInt(sc.next());
    System.out.println(
      Math.max(0, c - Math.max(0, a - b))
    );
  } main {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next()),
        b = Integer.parseInt(sc.next()),
        c = Integer.parseInt(sc.next());
    System.out.println(
      Math.max(0, c - Math.max(0, a - b))
    );
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()) a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc b = Integer.parseInt(sc.next()) b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc System.out.println(
      Math.max(0, c - Math.max(0, a - b))
    ) System.out.println System.out System System.out Math.max(0, c - Math.max(0, a - b)) Math.max Math 0 c - Math.max(0, a - b) c Math.max(0, a - b) Math.max Math 0 a - b a b String[] args args
import java.util.*;
class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next()),
        b = Integer.parseInt(sc.next()),
        c = Integer.parseInt(sc.next());
    System.out.println(
      Math.max(0, c - Math.max(0, a - b))
    );
  }
}
