import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	}

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

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	} main {

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.valueOf(sc.next()); n Integer.valueOf(sc.next()) Integer.valueOf Integer sc.next() sc.next sc int v[] = new int[n]; v new int[n] n for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		} int i = 0; int i = 0; i 0 i < v.length i v.length v v.length i++ i++ i {
			v[i] = Integer.valueOf(sc.next());
		} {
			v[i] = Integer.valueOf(sc.next());
		} v[i] = Integer.valueOf(sc.next()) v[i] v i Integer.valueOf(sc.next()) Integer.valueOf Integer sc.next() sc.next sc int a = 0; a 0 for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		} int i = 0; int i = 0; i 0 i < v.length i v.length v v.length i++ i++ i {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		} {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		} int c = Integer.valueOf(sc.next()); c Integer.valueOf(sc.next()) Integer.valueOf Integer sc.next() sc.next sc if (c < v[i]) {
				a = a + v[i] - c;
			} c < v[i] c v[i] v i {
				a = a + v[i] - c;
			} a = a + v[i] - c a a + v[i] - c a + v[i] a v[i] v i c System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = Integer.valueOf(sc.next());

		int v[] = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.valueOf(sc.next());
		}
		int a = 0;
		for (int i = 0; i < v.length; i++) {
			int c = Integer.valueOf(sc.next());
			if (c < v[i]) {
				a = a + v[i] - c;
			}
		}
		System.out.println(a);
	}

}
