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