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