#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int s1 = 0;
  for (int i = 0; i < n; i++) {
    int num;
    cin >> num;
    s1 = s1 + num;
  }
  int s2 = 0;
  for (int i = 0; i < n; i++) {
    int nu;
    cin >> nu;
    s2 = s2 + nu;
  }
  if (s1 >= s2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
