import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	}

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

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<Integer> value = new ArrayList<Integer>(); value new ArrayList<Integer>() ArrayList<Integer> cost = new ArrayList<Integer>(); cost new ArrayList<Integer>() for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			final int v = sc.nextInt();
			value.add(v);
		} {
			final int v = sc.nextInt();
			value.add(v);
		} final int v = sc.nextInt(); v sc.nextInt() sc.nextInt sc value.add(v) value.add value v for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			final int c = sc.nextInt();
			cost.add(c);
		} {
			final int c = sc.nextInt();
			cost.add(c);
		} final int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc cost.add(c) cost.add cost c int result = 0; result 0 for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		} {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		} final int result1 = value.get(j) - cost.get(j); result1 value.get(j) - cost.get(j) value.get(j) value.get value j cost.get(j) cost.get cost j if (result1 > 0) {
				result = result + result1;
			} result1 > 0 result1 0 {
				result = result + result1;
			} result = result + result1 result result + result1 result result1 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		ArrayList<Integer> value = new ArrayList<Integer>();
		ArrayList<Integer> cost = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			final int v = sc.nextInt();
			value.add(v);
		}
		for (int i = 0; i < n; i++) {
			final int c = sc.nextInt();
			cost.add(c);
		}

		int result = 0;
		for (int j = 0; j < n; j++) {
			final int result1 = value.get(j) - cost.get(j);
			if (result1 > 0) {
				result = result + result1;
			}
		}

		System.out.println(result);

	}

}
