#include <bits/stdc++.h>
using namespace std;

int main() {
	int N; cin >> N;
	vector<int> V(N), C(N);
	for(int &k:V) cin >> k;
	for(int &k:C) cin >> k;
	int ans = 0;
	for(int i = 0 ; i < N ; i++){
		if(V[i] - C[i] > 0 ) ans += V[i] - C[i];
	}
	cout << ans << endl;
}