import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	}
}	 import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	}
} Main public static void main(String[]args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int count = 0 ; count 0 int arr[] = new int[n]; arr new int[n] n int arr2[] = new int[n]; arr2 new int[n] n for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    } int  i = 0 ; int  i = 0 ; i 0 i < n i n i ++ i ++ i {
	    	arr[i] = scan.nextInt();
	    } {
	    	arr[i] = scan.nextInt();
	    } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    } int  i = 0 ; int  i = 0 ; i 0 i < n i n i ++ i ++ i {
	    	arr2[i] = scan.nextInt();
	    } {
	    	arr2[i] = scan.nextInt();
	    } arr2[i] = scan.nextInt() arr2[i] arr2 i scan.nextInt() scan.nextInt scan int sum = 0 ; sum 0 for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    } {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    } if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	} arr[i] - arr2[i] >0 arr[i] - arr2[i] arr[i] arr i arr2[i] arr2 i 0 {
	    		sum+= arr[i] - arr2[i];
	    	} sum+= arr[i] - arr2[i] sum arr[i] - arr2[i] arr[i] arr i arr2[i] arr2 i System.out.println(sum) System.out.println System.out System System.out sum String[]args args public class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	}
} public class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	}
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String[]args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0 ;
	    int arr[] = new int[n];
	    int arr2[] = new int[n];
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr[i] = scan.nextInt();
	    }
	    for(int  i = 0 ; i < n ; i ++) {
	    	arr2[i] = scan.nextInt();
	    }
	    int sum = 0 ;
	    for(int i = 0 ; i < n ; i++) {
	    	if(arr[i] - arr2[i] >0) {
	    		sum+= arr[i] - arr2[i];
	    	}
	    }
	    System.out.println(sum);
	}
}	