import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		System.out.println(result);
	}
	
	public static int calc(int[] v, int[] c, int money, int i) {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	}
} 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();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		System.out.println(result);
	}
	
	public static int calc(int[] v, int[] c, int money, int i) {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		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 int[] v = new int[n]; v new int[n] n int[] c = new int[n]; c new int[n] n for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < v.length i v.length v v.length i++ i++ i {
			v[i] = sc.nextInt();
		} {
			v[i] = sc.nextInt();
		} v[i] = sc.nextInt() v[i] v i sc.nextInt() sc.nextInt sc for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i {
			c[i] = sc.nextInt();
		} {
			c[i] = sc.nextInt();
		} c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc int result = calc(v, c, 0, 0); result calc(v, c, 0, 0) calc v c 0 0 System.out.println(result) System.out.println System.out System System.out result String[] args args public static int calc(int[] v, int[] c, int money, int i) {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	} calc {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	} if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		} i >= v.length i v.length v v.length {
			return money;
		} return money; money {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		} if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			} v[i] - c[i] > 0 v[i] - c[i] v[i] v i c[i] c i 0 {
				money += v[i] - c[i];
			} money += v[i] - c[i] money v[i] - c[i] v[i] v i c[i] c i return calc(v, c, money, ++i); calc(v, c, money, ++i) calc v c money ++i i int[] v v int[] c c int money money int i i public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		System.out.println(result);
	}
	
	public static int calc(int[] v, int[] c, int money, int i) {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		System.out.println(result);
	}
	
	public static int calc(int[] v, int[] c, int money, int i) {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < v.length; i++) {
			v[i] = sc.nextInt();
		}
		for (int i = 0; i < c.length; i++) {
			c[i] = sc.nextInt();
		}
		int result = calc(v, c, 0, 0);
		System.out.println(result);
	}
	
	public static int calc(int[] v, int[] c, int money, int i) {
		if (i >= v.length) {
			return money;
		} else {
			if (v[i] - c[i] > 0) {
				money += v[i] - c[i];
			}
			return calc(v, c, money, ++i);
		}
	}
}
