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

      int n = sc.nextInt();
      int[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    }


      public static int Resale(int[] vdata,int[] cdata,int n){
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      }
    } 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[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    }


      public static int Resale(int[] vdata,int[] cdata,int n){
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      }
    } Main public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int n = sc.nextInt();
      int[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    } main {
      Scanner sc = new Scanner(System.in);

      int n = sc.nextInt();
      int[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] vdata = new int[n]; vdata new int[n] n int[] cdata = new int[n]; cdata new int[n] n for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
         vdata[i] = sc.nextInt();
      } {
         vdata[i] = sc.nextInt();
      } vdata[i] = sc.nextInt() vdata[i] vdata i sc.nextInt() sc.nextInt sc for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
         cdata[i] = sc.nextInt();
      } {
         cdata[i] = sc.nextInt();
      } cdata[i] = sc.nextInt() cdata[i] cdata i sc.nextInt() sc.nextInt sc System.out.println(Resale(vdata,cdata,n)) System.out.println System.out System System.out Resale(vdata,cdata,n) Resale vdata cdata n String[]args args public static int Resale(int[] vdata,int[] cdata,int n){
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      } Resale {
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      } int sum = 0; sum 0 for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        } {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        } if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           } vdata[i]-cdata[i]>0 vdata[i]-cdata[i] vdata[i] vdata i cdata[i] cdata i 0 {
              sum += vdata[i]-cdata[i];
           } sum += vdata[i]-cdata[i] sum vdata[i]-cdata[i] vdata[i] vdata i cdata[i] cdata i return sum; sum int[] vdata vdata int[] cdata cdata int n n public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int n = sc.nextInt();
      int[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    }


      public static int Resale(int[] vdata,int[] cdata,int n){
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      }
    } public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int n = sc.nextInt();
      int[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    }


      public static int Resale(int[] vdata,int[] cdata,int n){
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      }
    } Main
import java.util.*;
public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int n = sc.nextInt();
      int[] vdata = new int[n];
      int[] cdata = new int[n];

      for (int i = 0;i<n;i++ ) {
         vdata[i] = sc.nextInt();
      }
      for (int i = 0;i<n;i++ ) {
         cdata[i] = sc.nextInt();
      }
      System.out.println(Resale(vdata,cdata,n));
    }


      public static int Resale(int[] vdata,int[] cdata,int n){
        int sum = 0;
        for (int i = 0;i<n;i++ ) {
           if (vdata[i]-cdata[i]>0) {
              sum += vdata[i]-cdata[i];
           }
        }
        return sum;
      }
    }
