#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,x=0;cin>>N;int v[N],c[N];
  for(int i=0;i<N;i++)cin>>v[i];
  for(int i=0;i<N;i++)cin>>c[i];
  for(int i=0;i<N;i++)if(v[i]>c[i])x+=v[i]-c[i];
  cout<<x<<endl;
}