
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	} main {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int max = 0; max 0 int[] value = new int[num]; value new int[num] num int[] cost = new int[num]; cost new int[num] num for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			value[i] = scan.nextInt();
		} {
			value[i] = scan.nextInt();
		} value[i] = scan.nextInt() value[i] value i scan.nextInt() scan.nextInt scan for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			cost[i] = scan.nextInt();
		} {
			cost[i] = scan.nextInt();
		} cost[i] = scan.nextInt() cost[i] cost i scan.nextInt() scan.nextInt scan for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		} {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		} if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			} value[i] > cost[i] value[i] value i cost[i] cost i {
				max += value[i] - cost[i];
			} max += value[i] - cost[i] max value[i] - cost[i] value[i] value i cost[i] cost i System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int max = 0;
		int[] value = new int[num];
		int[] cost = new int[num];
		
		for (int i = 0; i < num; i++) {
			value[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			cost[i] = scan.nextInt();
		}
		
		for (int i = 0; i < num; i++) {
			if (value[i] > cost[i]) {
				max += value[i] - cost[i];
			}
		}
		
		System.out.println(max);
	}
}