import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] v = new int[n]; v new int[n] n int[] c = new int[n]; c new int[n] n int[] sub = new int[n]; sub new int[n] n int num = 0; num 0 for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      v[i] = sc.nextInt();
    } {
      v[i] = sc.nextInt();
    } v[i] = sc.nextInt() v[i] v i sc.nextInt() sc.nextInt sc for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      c[i] = sc.nextInt();
    } {
      c[i] = sc.nextInt();
    } c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      sub[i] = v[i] -c[i];
    } {
      sub[i] = v[i] -c[i];
    } sub[i] = v[i] -c[i] sub[i] sub i v[i] -c[i] v[i] v i c[i] c i for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      if(sub[i]>0){
        num += sub[i];
      }
    } {
      if(sub[i]>0){
        num += sub[i];
      }
    } if(sub[i]>0){
        num += sub[i];
      } sub[i]>0 sub[i] sub i 0 {
        num += sub[i];
      } num += sub[i] num sub[i] sub i System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];
    int[] sub = new int[n];
    int num = 0;
    for(int i=0; i<n;i++){
      v[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      c[i] = sc.nextInt();
    }
    for(int i=0; i<n;i++){
      sub[i] = v[i] -c[i];
    }
    for(int i=0; i<n;i++){
      if(sub[i]>0){
        num += sub[i];
      }
    }
    System.out.println(num);
  }
}