#include <bits/stdc++.h>
using namespace std;
map<long long int, long long int> mp;
int main() {
  long long int n, sum1 = 0, sum2 = 0, x;
  cin >> n;
  vector<long long int> v1, v2;
  for (long long int i = 0; i < n; i++) {
    cin >> x;
    sum1 += x;
  }
  for (long long int i = 0; i < n; i++) {
    cin >> x;
    sum2 += x;
  }
  if (sum1 >= sum2) {
    cout << "Yes";
  } else {
    cout << "No";
  }
}
