#include <iostream>
using namespace std;
#include <string.h>
int main()
{
int n;
cin>>n;
long a[n],b[n];
long total=0;
for(int i=0;i<n;i++){
cin>>a[i];
total+=a[i];
}
for(int i=0;i<n;i++){
cin>>b[i];
total-=b[i];
}
cout<<total;
}