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