#include <iostream>
#include <queue>
using namespace std;
typedef long long ll;
int n;ll a[10005],b[10005];
priority_queue<int,vector<int>, greater<int>>q1,q2;
int main(){
    ios::sync_with_stdio(false);
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    for(int i=1;i<=n;i++)
        cin>>b[i];
    ll b_a=0,a_b=0;
    for (int i=1;i<=n;i++){
        if (a[i]>b[i]){
            a_b+=(a[i]-b[i]);
        }
        else if (a[i]<b[i]){
            b_a+=(b[i]-a[i]);
        }
    }
    if(a_b>b_a){
        cout<<"No";
    } else{
        cout<<"Yes";
    }
}

