#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int boss=1e4;
int n,a[boss+10],b[boss+10],c[boss+10];ll cnt1,cnt2;
int main()
{
int i;
scanf("%d",&n);
for (i=1;i<=n;i++) scanf("%d",&a[i]);
for (i=1;i<=n;i++) scanf("%d",&b[i]);
for (i=1;i<=n;i++) c[i]=a[i]-b[i];
for (i=1;i<=n;i++) if (c[i]>0) cnt1+=c[i];else cnt2-=c[i]/2;
puts(cnt1<=cnt2?"Yes":"No");
}