#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int sum = 0, k, t, sum1 = 0;
  for (int i = 0; i < n; ++i) {
    cin >> k;
    sum += k;
  }
  for (int i = 0; i < n; ++i) {
    cin >> t;
    sum1 += t;
  }
  if (sum >= sum1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
