#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, f = 0;
  cin >> n;
  long long ar[n], br[n], s1 = 0, s2 = 0, s = 0;
  for (long long i = 0; i < n; i++) {
    cin >> ar[i];
    s1 += ar[i];
  }
  for (long long i = 0; i < n; i++) {
    cin >> br[i];
    s2 += br[i];
  }
  for (long long i = 0; i < n; i++) {
    s += ar[i] - br[i];
  }
  if (s2 > s1) {
    cout << "No";
  } else if (s < 0)
    cout << "No";
  else {
    cout << "Yes";
  }
}
