#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  int n;
  int falg[110], tag[110];
  int sum1 = 0, sum2 = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> falg[i];
    sum1 += falg[i];
  }
  for (int i = 0; i < n; ++i) {
    cin >> tag[i];
    sum2 += tag[i];
  }
  if (sum1 >= sum2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
