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