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