
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  }

} import java.io.FileNotFoundException; FileNotFoundException java.io import java.io.FileReader; FileReader java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  }

} Main public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  } main {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int n = cin.nextInt(); n cin.nextInt() cin.nextInt cin int[] diff = new int[n]; diff new int[n] n int[] value = new int[n]; value new int[n] n for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      value[i] = cin.nextInt();
    } {
      value[i] = cin.nextInt();
    } value[i] = cin.nextInt() value[i] value i cin.nextInt() cin.nextInt cin for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      diff[i] = value[i] - cin.nextInt();
    } {
      diff[i] = value[i] - cin.nextInt();
    } diff[i] = value[i] - cin.nextInt() diff[i] diff i value[i] - cin.nextInt() value[i] value i cin.nextInt() cin.nextInt cin int sum = 0; sum 0 for (int i:diff) {
      if (i>0) 
        sum+=i;
    } int i diff {
      if (i>0) 
        sum+=i;
    } {
      if (i>0) 
        sum+=i;
    } if (i>0) 
        sum+=i; i>0 i 0 sum+=i sum i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  }

} public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  }

} Main

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] diff = new int[n];
    int[] value = new int[n];
    for (int i=0;i<n;i++) {
      value[i] = cin.nextInt();
    }
    for (int i=0;i<n;i++) {
      diff[i] = value[i] - cin.nextInt();
    }
    
//    int[] diff = new int[n];
    int sum = 0;
    
    for (int i:diff) {
      if (i>0) 
        sum+=i;
    }
    
    System.out.println(sum);
  }

}