#include <bits/stdc++.h>

using namespace std;

int main() {
	int n, m = 0;
	cin >> n;
	int v[22];
	for (int i = 0; i < n; i++)
		cin >> v[i];
	for (int i = 0; i < n; i++) {
		int c;
		cin >> c;
		m += max(0, v[i] - c);
	}
	cout << m << endl;
	return 0;
}
