#include <bits/stdc++.h>
using namespace std;
vector<long long> second;
long long build() {
  long long w = 1;
  for (int i = 0; i <= 31; i++) {
    second.push_back(w);
    w *= 2;
  }
  return w;
}
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, x, sum = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    sum += x;
  }
  for (int i = 1; i <= n; i++) {
    cin >> x;
    sum -= x;
  }
  if (sum < 0) {
    cout << "No";
  } else
    cout << "Yes";
}
