import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.Scanner;

public class Main {

	private static final boolean TEST = false;

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	}

	private static int solve(int[] v, int[] c) {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigInteger; BigInteger java.math import java.util.Scanner; Scanner java.util public class Main {

	private static final boolean TEST = false;

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	}

	private static int solve(int[] v, int[] c) {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	}
} Main private static final boolean TEST = false; TEST false public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	} main {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	} Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n = in.nextInt(); n in.nextInt() in.nextInt in 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 < n; i++)
			v[i] = in.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i v[i] = in.nextInt(); v[i] = in.nextInt() v[i] v i in.nextInt() in.nextInt in for (int i = 0; i < n; i++)
			c[i] = in.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i c[i] = in.nextInt(); c[i] = in.nextInt() c[i] c i in.nextInt() in.nextInt in System.out.println(solve(v, c)) System.out.println System.out System System.out solve(v, c) solve v c in.close() in.close in String[] args args private static int solve(int[] v, int[] c) {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	} solve {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	} int ans = 0; ans 0 for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i]; int i = 0; int i = 0; i 0 i < v.length i v.length v v.length i++ i++ 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] v[i] v i c[i] c i return ans; ans int[] v v int[] c c public class Main {

	private static final boolean TEST = false;

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	}

	private static int solve(int[] v, int[] c) {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	}
} public class Main {

	private static final boolean TEST = false;

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	}

	private static int solve(int[] v, int[] c) {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.Scanner;

public class Main {

	private static final boolean TEST = false;

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		int[] v = new int[n];
		int[] c = new int[n];
		for (int i = 0; i < n; i++)
			v[i] = in.nextInt();
		for (int i = 0; i < n; i++)
			c[i] = in.nextInt();
		System.out.println(solve(v, c));
		in.close();
	}

	private static int solve(int[] v, int[] c) {
		int ans = 0;
		for (int i = 0; i < v.length; i++)
			if (v[i] > c[i])
				ans += v[i] - c[i];
		return ans;
	}
}