#include <bits/stdc++.h>
using namespace std;
int a[1005], b[1005], n;
int main() {
  int k = 0, v = 0;
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    k += a[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    v += b[i];
  }
  if (k >= v)
    std::cout << "YES" << std::endl;
  else
    std::cout << "NO" << std::endl;
}
