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