#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int x;
  cin >> x;
  vector<int> first(x);
  vector<int> second(x);
  int sum_f = 0;
  for (int i = 0; i < x; i++) {
    cin >> first[i];
    sum_f += first[i];
  }
  int sum_s = 0;
  for (int i = 0; i < x; i++) {
    cin >> second[i];
    sum_s += second[i];
  }
  if (sum_s > sum_f) {
    cout << "No";
  } else
    cout << "Yes";
  return 0;
}
