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