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