#include<iostream>
using namespace std;

int main(){
	int n,c[21],v[21];
	cin>>n;
	for(int i=1;i<=n;++i)	cin>>v[i];
	for(int i=1;i<=n;++i){
		cin>>c[i];
		c[i]=v[i]-c[i];
	}
	int ans=0;
	for(int i=1;i<=n;++i)
		if(c[i]>0)	ans+=c[i];
	cout<<ans;
}