#include<iostream>
#pragma GCC diagnostic error "-std=c++11"
using namespace std;
int a[22],b[22];
int main(){
	int n,i,j;
	cin>>n;
	long long ans=0;
	for(i=1;i<=n;++i) cin>>a[i];
	for(i=1;i<=n;++i) cin>>b[i],ans+=max(0,a[i]-b[i]);
	cout<<ans<<endl;
}