#include <bits/stdc++.h>
using namespace std;
#define S second
#define F first
#define LL long long
#define LINF 100000000000000000
#define INF 1000000000
const int N = 4e5+10;
const LL MOD = 1e9+7;
LL gcd(LL a,LL b){return !b?a:gcd(b,a%b);}
string f(int c,int k){
string ret = "";
for(int i=c;i<k;i++)
ret += i+'a',ret += c+'a';
return ret;
}
int main()
{
//freopen("out.txt","w",stdout);
int n;
scanf("%d",&n);
LL sum[] = {0,0};
for(int j=0;j<2;j++)
for(int i=1;i<=n;i++){
int x;cin>>x;
sum[j] += 0ll+x;
}
printf("%lld\n",sum[0]-sum[1]);
}
Copy