#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, count_1 = 0, count_2 = 0;
  int a[1000], b[1000];
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    count_1 += a[i];
  }
  for (i = 0; i < n; i++) {
    cin >> b[i];
    count_2 += b[i];
  }
  if (count_1 >= count_2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
