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