import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	}
} import java.util.Scanner; Scanner java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc StringTokenizer a = new StringTokenizer(sc.nextLine()); a new StringTokenizer(sc.nextLine()) StringTokenizer b = new StringTokenizer(sc.nextLine()); b new StringTokenizer(sc.nextLine()) int sum = 0; sum 0 for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		} {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		} int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken()); value Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken()) Integer.parseInt(a.nextToken()) Integer.parseInt Integer a.nextToken() a.nextToken a Integer.parseInt(b.nextToken()) Integer.parseInt Integer b.nextToken() b.nextToken b sum += value > 0 ? value : 0 sum value > 0 ? value : 0 value > 0 value 0 value 0 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 sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	}
} Main
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.nextLine());
		
		StringTokenizer a = new StringTokenizer(sc.nextLine());
		StringTokenizer b = new StringTokenizer(sc.nextLine());
		
		int sum = 0;
		for(int i = 1; i <= n; i++) {
			int value = Integer.parseInt(a.nextToken()) - Integer.parseInt(b.nextToken());
			sum += value > 0 ? value : 0;
		}
		
		System.out.println(sum);
	}
}
