#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, n, tong1 = 0, tong2 = 0;
  cin >> n;
  long long a[n + 2], b[n + 2];
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    tong1 += a[i];
  }
  for (i = 1; i <= n; i++) {
    cin >> b[i];
    tong2 += b[i];
  }
  if (tong1 >= tong2) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
