#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  vector<int> x(n), y(n);
  for (int i = 0; i < n; i++) cin >> x[i];
  int s1 = accumulate(x.begin(), x.end(), 0);
  for (int i = 0; i < n; i++) cin >> y[i];
  int s2 = accumulate(y.begin(), y.end(), 0);
  if (s2 <= s1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
