#include <cstdio>
inline void scan(int &num){
    int c=getchar();
    num=0;
    while(c<'0'||c>'9')c=getchar();
    while(c>='0'&&c<='9'){num=num*10+c-'0';c=getchar();}
}
int main(){
    int len,a[10000],b[10000];
    scan(len);
    long long sum=0;
    bool valid;
    for(int i=0;i<len;i++)scan(a[i]);
    for(int i=0;i<len;i++){scan(b[i]);b[i]-=a[i];sum+=b[i];}
    if(sum<0){printf("No\n");return 0;}
    for(int i=0;i<len;i++){
        if(b[i]>=0)continue;
        while(b[i]<0){
            b[i]++;
            valid=false;
            for(int j=0;j<len;j++){if(b[j]>=2){b[j]-=2;valid=true;break;}}
            if(!valid){printf("No\n");return 0;}
        }
    }
    printf("Yes\n");
    return 0;
}