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