import java.util.*;

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

    }
} Main
import java.util.*;

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

      int n = Integer.parseInt(sc.next());

      int[] v = new int[n];
      for(int i=0;i<n;i++){
        v[i] = Integer.parseInt(sc.next());
      }
      int[] c = new int[n];
      for(int i=0;i<n;i++){
        c[i] = Integer.parseInt(sc.next());
      }

      int ans = 0;

      int[] vc = new int[n];
      for(int i=0;i<n;i++){
        vc[i] = v[i] - c[i];
        if(vc[i]>0){
          ans+=vc[i];
        }
      }

      System.out.println(ans);

    }
}
