#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, suma = 0, sumb = 0, temp;
  cin >> n;
  vector<int> a;
  vector<int> b;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    a.push_back(temp);
    suma += temp;
  }
  for (int i = 0; i < n; i++) {
    cin >> temp;
    b.push_back(temp);
    sumb += temp;
  }
  if (sumb <= suma)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
