#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[n], y[n];
  int s1 = 0;
  int s2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
    s1 += x[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> y[i];
    s2 += y[i];
  }
  if (s1 >= s2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
