import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] vset = new int[n];
      int[] cset = new int[n];
      int i,j;
      int sum = 0;
      int cost = 0;
      for (i = 0; i < n; i++) {
         vset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      }
      System.out.println(sum);
   }
} import java.util.Scanner; Scanner java.util import java.util.InputMismatchException; InputMismatchException java.util class Main {
   public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] vset = new int[n];
      int[] cset = new int[n];
      int i,j;
      int sum = 0;
      int cost = 0;
      for (i = 0; i < n; i++) {
         vset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      }
      System.out.println(sum);
   }
} Main public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] vset = new int[n];
      int[] cset = new int[n];
      int i,j;
      int sum = 0;
      int cost = 0;
      for (i = 0; i < n; i++) {
         vset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      }
      System.out.println(sum);
   } main {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] vset = new int[n];
      int[] cset = new int[n];
      int i,j;
      int sum = 0;
      int cost = 0;
      for (i = 0; i < n; i++) {
         vset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      }
      System.out.println(sum);
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] vset = new int[n]; vset new int[n] n int[] cset = new int[n]; cset new int[n] n int i i j; j int sum = 0; sum 0 int cost = 0; cost 0 for (i = 0; i < n; i++) {
         vset[i] = sc.nextInt();
      } i = 0; i = 0 i 0 i < n i n i++ i++ i {
         vset[i] = sc.nextInt();
      } {
         vset[i] = sc.nextInt();
      } vset[i] = sc.nextInt() vset[i] vset i sc.nextInt() sc.nextInt sc for (i=0; i<n; i++) {
         cset[i] = sc.nextInt();
      } i=0; i=0 i 0 i<n i n i++ i++ i {
         cset[i] = sc.nextInt();
      } {
         cset[i] = sc.nextInt();
      } cset[i] = sc.nextInt() cset[i] cset i sc.nextInt() sc.nextInt sc for (i=0; i<n; i++) {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      } i=0; i=0 i 0 i<n i n i++ i++ i {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      } {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      } cost = vset[i] - cset[i] cost vset[i] - cset[i] vset[i] vset i cset[i] cset i if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         } cost > 0 cost 0 {
            sum = sum + cost;
         } sum = sum + cost sum sum + cost sum cost {
            continue;
         } continue; System.out.println(sum) System.out.println System.out System System.out sum String args[] args
import java.util.Scanner;
import java.util.InputMismatchException;

class Main {
   public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] vset = new int[n];
      int[] cset = new int[n];
      int i,j;
      int sum = 0;
      int cost = 0;
      for (i = 0; i < n; i++) {
         vset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cset[i] = sc.nextInt();
      }
      for (i=0; i<n; i++) {
         cost = vset[i] - cset[i];
         if (cost > 0) {
            sum = sum + cost;
         } else {
            continue;
         }
      }
      System.out.println(sum);
   }
}
