#include<iostream>
#include<algorithm>
using namespace std;
 int n, s, a[20], b;
int main()
{
	
	cin >> n;
	for (int i = 0; i < n; i++)cin >> a[i];
	for (int i = 0; i < n; i++)cin >> b, s += max(a[i] - b, 0);
	cout << s << endl;
}