#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  long long a[n], b[n];
  long long s1 = 0, s2 = 0;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    s1 += a[i];
  }
  for (long long j = 0; j < n; j++) {
    cin >> b[j];
    s2 += b[j];
  }
  if (s1 < s2) {
    cout << "NO";
    return 0;
  } else {
    cout << "YES";
  }
  return 0;
}
