#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    a += x;
  }
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    a -= x;
  }
  if (a >= 0)
    cout << "Yes" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
