#include <bits/stdc++.h>
using namespace std;
int n, a, s;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    s += a;
  }
  for (int i = 1; i <= n; i++) {
    cin >> a;
    s -= a;
  }
  if (s < 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
  return 0;
}
