import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    }
} Main public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    } main {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int array[] = new int[3]; array new int[3] 3 array[0] = sc.nextInt() array[0] array 0 sc.nextInt() sc.nextInt sc array[1] = sc.nextInt() array[1] array 1 sc.nextInt() sc.nextInt sc array[2] = sc.nextInt() array[2] array 2 sc.nextInt() sc.nextInt sc int x; x x = array[0] - array[1] - array[2] x array[0] - array[1] - array[2] array[0] - array[1] - array[2] array[0] array 0 array[1] array 1 array[2] array 2 if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      } x < 0 x 0 {
        x = Math.abs(x);
      } x = Math.abs(x) x Math.abs(x) Math.abs Math x {
        x = 0;
      } x = 0 x 0 System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main {
    public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    }
} public class Main {
    public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
      
      Scanner sc = new Scanner(System.in);
      
      int array[] = new int[3];
      array[0] = sc.nextInt();
      array[1] = sc.nextInt();
      array[2] = sc.nextInt();
      int x;

      x = array[0] - array[1] - array[2];
      if(x < 0){
        x = Math.abs(x);
      } else {
        x = 0;
      }
      System.out.println(x);
    }
}
