import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	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 = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	System.out.println(ans);
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	System.out.println(ans);
    } main {
		Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int array1[] = new int[n]; array1 new int[n] n int array2[] = new int[n]; array2 new int[n] n int ans = 0; ans 0 for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
          array1[i] = sc.nextInt();
        } {
          array1[i] = sc.nextInt();
        } array1[i] = sc.nextInt() array1[i] array1 i sc.nextInt() sc.nextInt sc for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        } int l=0; int l=0; l 0 l<n l n l++ l++ l {
          array2[l] = sc.nextInt();
        } {
          array2[l] = sc.nextInt();
        } array2[l] = sc.nextInt() array2[l] array2 l sc.nextInt() sc.nextInt sc for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        } int m=0; int m=0; m 0 m<n m n m++ m++ m {
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        } {
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        } if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          } array1[m]>array2[m] array1[m] array1 m array2[m] array2 m {
            ans += array1[m]-array2[m];
          } ans += array1[m]-array2[m] ans array1[m]-array2[m] array1[m] array1 m array2[m] array2 m 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 = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	System.out.println(ans);
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	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 = sc.nextInt();
      	int array1[] = new int[n];
        int array2[] = new int[n];
      	int ans = 0;
      	for(int i=0; i<n; i++){
          array1[i] = sc.nextInt();
        }
      	for(int l=0; l<n; l++){
          array2[l] = sc.nextInt();
        }
      	for(int m=0; m<n; m++){
          if(array1[m]>array2[m]){
            ans += array1[m]-array2[m];
          }
        }
      	System.out.println(ans);
    }
}
            