#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t = 1;
  while (t--) {
    long long n, suma = 0, sumb = 0;
    cin >> n;
    long long a[n], b[n];
    for (long long i = 0; i < (long long)n; i++) {
      cin >> a[i];
      suma = suma + a[i];
    }
    for (long long i = 0; i < (long long)n; i++) {
      cin >> b[i];
      sumb = sumb + b[i];
    }
    if (sumb <= suma)
      cout << "yes" << endl;
    else
      cout << "no" << endl;
  }
}
