import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	} main {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int v[] = new int[50]; v new int[50] 50 int c[] = new int[50]; c new int[50] 50 for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			v[i] = scan.nextInt();
		} {
			v[i] = scan.nextInt();
		} v[i] = scan.nextInt() v[i] v i scan.nextInt() scan.nextInt scan for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			c[i] = scan.nextInt();
		} {
			c[i] = scan.nextInt();
		} c[i] = scan.nextInt() c[i] c i scan.nextInt() scan.nextInt scan int ans = 0; ans 0 for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		} {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		} if (v[i] > c[i]) {
				ans += v[i] - c[i];
			} v[i] > c[i] v[i] v i c[i] c i {
				ans += v[i] - c[i];
			} ans += v[i] - c[i] ans v[i] - c[i] v[i] v i c[i] c i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int v[] = new int[50];
		int c[] = new int[50];

		for (int i = 0; i < N; i++) {
			v[i] = scan.nextInt();
		}
		for (int i = 0; i < N; i++) {
			c[i] = scan.nextInt();
		}

		int ans = 0;
		for (int i = 0; i < N; i++) {
			if (v[i] > c[i]) {
				ans += v[i] - c[i];
			}
		}

		System.out.println(ans);
	}
}