import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	}

} Main public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	} main {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) int N = Integer.parseInt(in.readLine()); N Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in int[] C = new int[N]; C new int[N] N int[] V = new int[N]; V new int[N] N String[] tokens = in.readLine().split(" "); tokens in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			V[i] = Integer.parseInt(tokens[i]);
		} {
			V[i] = Integer.parseInt(tokens[i]);
		} V[i] = Integer.parseInt(tokens[i]) V[i] V i Integer.parseInt(tokens[i]) Integer.parseInt Integer tokens[i] tokens i tokens = in.readLine().split(" ") tokens in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			C[i] = Integer.parseInt(tokens[i]);
		} {
			C[i] = Integer.parseInt(tokens[i]);
		} C[i] = Integer.parseInt(tokens[i]) C[i] C i Integer.parseInt(tokens[i]) Integer.parseInt Integer tokens[i] tokens i in.close() in.close in int result = 0; result 0 for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		} {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		} if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			} V[i] - C[i] > 0 V[i] - C[i] V[i] V i C[i] C i 0 {
				result += V[i] - C[i];
			} result += V[i] - C[i] result V[i] - C[i] V[i] V i C[i] C i System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		int[] C = new int[N];
		int[] V = new int[N];
		String[] tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			V[i] = Integer.parseInt(tokens[i]);
		}
		tokens = in.readLine().split(" ");
		for (int i = 0; i < N; ++i) {
			C[i] = Integer.parseInt(tokens[i]);
		}
		in.close();

		int result = 0;
		for (int i = 0; i < N; ++i) {
			if (V[i] - C[i] > 0) {
				result += V[i] - C[i];
			}
		}
		System.out.println(result);
	}

}