#include<iostream>
using namespace std;
#define ll long long
int main(int argc, char *argv[])
{
ll n;
cin>>n;
ll arr[n],brr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
for(int i=0;i<n;i++)
cin>>brr[i];
ll sum=0;
for(int i=0;i<n;i++)
sum+=arr[i]-brr[i];
cout<<sum;
}