#include <bits/stdc++.h>
using namespace std;
int main() {
  size_t n;
  cin >> n;
  uint32_t x_sum = 0;
  for (auto i = 0; i < n; ++i) {
    uint32_t curr;
    cin >> curr;
    x_sum += curr;
  }
  uint32_t y_sum = 0;
  for (auto i = 0; i < n; ++i) {
    uint32_t curr;
    cin >> curr;
    y_sum += curr;
  }
  cout << ((x_sum >= y_sum) ? "Yes" : "No") << endl;
  return 0;
}
