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