import java.util.*;

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

    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    int d=a-b;
    int n=c-d;
    if(n<0)
    {
      n=0;
    }
    System.out.print(n);

  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);

    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    int d=a-b;
    int n=c-d;
    if(n<0)
    {
      n=0;
    }
    System.out.print(n);

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

    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    int d=a-b;
    int n=c-d;
    if(n<0)
    {
      n=0;
    }
    System.out.print(n);

  } main {
    Scanner sc=new Scanner(System.in);

    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    int d=a-b;
    int n=c-d;
    if(n<0)
    {
      n=0;
    }
    System.out.print(n);

  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int c=sc.nextInt(); c sc.nextInt() sc.nextInt sc int d=a-b; d a-b a b int n=c-d; n c-d c d if(n<0)
    {
      n=0;
    } n<0 n 0 {
      n=0;
    } n=0 n 0 System.out.print(n) System.out.print System.out System System.out n String[] args args
import java.util.*;

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

    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    int d=a-b;
    int n=c-d;
    if(n<0)
    {
      n=0;
    }
    System.out.print(n);

  }
}