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