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

int main(){
  int n;
  cin >> n;
  vector<int> v(n),c(n);
  for(auto& x:v)
    cin >> x;
  for(auto& x:c)
    cin >> x;
  int ans=0;
  for(int i=0;i<n;i++)
    ans += max(0,v.at(i)-c.at(i));
  cout << ans << endl;
}