#include <bits/stdc++.h>
using namespace std;
int n, sm = 0, SM = 0;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    sm += x;
  }
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    SM += x;
  }
  if (sm < SM)
    cout << "No";
  else
    cout << "Yes";
}
