#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> x(n);
  vector<int> y(n);
  int xSum = 0, ySum = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
    xSum += x[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> y[i];
    ySum += y[i];
  }
  if (xSum < ySum)
    cout << "No";
  else
    cout << "Yes";
}
