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