#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int i, count1 = 0, count2 = 0, x;
  for (i = 0; i < n; i++) {
    cin >> x;
    count1 += x;
  }
  for (i = 0; i < n; i++) {
    cin >> x;
    count2 += x;
  }
  if (count2 <= count1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
