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