import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) {

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	}

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

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	} main {

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	} int n = 0; n 0 int[] diffArray = null; diffArray null try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		} IOException e {
			e.printStackTrace();
			System.exit(1);
		} e.printStackTrace() e.printStackTrace e System.exit(1) System.exit System 1 {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in)) new BufferedReader(new InputStreamReader(
				System.in)) n = Integer.parseInt(br.readLine()) n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] v = br.readLine().split("\\s"); v br.readLine().split("\\s") br.readLine().split br.readLine() br.readLine br "\\s" String[] c = br.readLine().split("\\s"); c br.readLine().split("\\s") br.readLine().split br.readLine() br.readLine br "\\s" diffArray = new int[n] diffArray new int[n] n for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			} {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			} int vi = Integer.parseInt(v[i]); vi Integer.parseInt(v[i]) Integer.parseInt Integer v[i] v i int ci = Integer.parseInt(c[i]); ci Integer.parseInt(c[i]) Integer.parseInt Integer c[i] c i int diff = vi - ci; diff vi - ci vi ci if (0 < diff) {
					diffArray[i] = diff;
				} 0 < diff 0 diff {
					diffArray[i] = diff;
				} diffArray[i] = diff diffArray[i] diffArray i diff int sum = 0; sum 0 for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		} int i = 0; int i = 0; i 0 i < diffArray.length i diffArray.length diffArray diffArray.length i++ i++ i {
			sum += diffArray[i];
		} {
			sum += diffArray[i];
		} sum += diffArray[i] sum diffArray[i] diffArray i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {
	public static void main(String[] args) {

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	}

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

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

		int n = 0;
		int[] diffArray = null;
		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in))) {

			n = Integer.parseInt(br.readLine());

			String[] v = br.readLine().split("\\s");
			String[] c = br.readLine().split("\\s");

			diffArray = new int[n];
			for (int i = 0; i < n; i++) {
				int vi = Integer.parseInt(v[i]);
				int ci = Integer.parseInt(c[i]);

				int diff = vi - ci;
				if (0 < diff) {
					diffArray[i] = diff;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}

		int sum = 0;
		for (int i = 0; i < diffArray.length; i++) {
			sum += diffArray[i];
		}
		System.out.println(sum);
	}

}
