#include <bits/stdc++.h>
using namespace std;
int main() {
  int ar[100];
  int n, t;
  int tot = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> t, tot += t;
  for (int i = 0; i < n; i++) cin >> t, tot -= t;
  if (tot >= 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
