
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	}

} Main public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	} try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		} {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int juelSize = Integer.parseInt(sc.nextLine()); juelSize Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] value = sc.nextLine().split(" "); value sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String[] cost = sc.nextLine().split(" "); cost sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int sum = 0; sum 0 for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			} int i = 0; int i = 0; i 0 i < juelSize i juelSize i++ i++ i {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			} {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			} int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]); benefit Integer.parseInt(value[i]) - Integer.parseInt(cost[i]) Integer.parseInt(value[i]) Integer.parseInt Integer value[i] value i Integer.parseInt(cost[i]) Integer.parseInt Integer cost[i] cost i if (benefit > 0) {
					sum += benefit;
				} benefit > 0 benefit 0 {
					sum += benefit;
				} sum += benefit sum benefit 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) {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	}

} public class Main {

	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			int juelSize = Integer.parseInt(sc.nextLine());
			String[] value = sc.nextLine().split(" ");
			String[] cost = sc.nextLine().split(" ");
			
			int sum = 0;
			
			for (int i = 0; i < juelSize; i++) {
				int benefit = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);
				if (benefit > 0) {
					sum += benefit;
				}
			}
			
			System.out.println(sum);
			
		}
	}

}
