#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define pb push_back
#define md ((st + nd) >> 1)
#define lc (1 + (idx << 1))
#define rc (2 + (idx << 1))
const int N = 100005;
int a[N], b[N];
int main() {
//ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (int i = 0; i < n; i++) {
scanf("%d", &b[i]);
}
ll res = 0;
for (int i = 0; i < n; i++) {
res += a[i] - b[i];
}
printf("%lld", res);
return 0;
}
Copy