#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], b[n];
  int as = 0, bs = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    as += a[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    bs += b[i];
  }
  if (as >= bs)
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
  return 0;
}
