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