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