#include <iostream>
#include <cmath>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <cstring>
#include <string>
using namespace std;
typedef long double ld;
typedef long long ll;
const int N=2e5+5;
int n;
int main (){
cin>>n;
ll hnhn=0;
for (int i=0;i <n;i++){
ll a;cin>>a;hnhn+=a;
}
for (int i=0;i <n;i++){
ll a;cin>>a;hnhn-=a;
}
cout <<hnhn;
}