#include <bits/stdc++.h>
using namespace std;
int main() {
  long a, b, stones, total1 = 0, total2 = 0;
  cin >> stones;
  for (int i = 1; i <= stones; i++) {
    cin >> a;
    total1 += a;
  }
  for (int i = 1; i <= stones; i++) {
    cin >> b;
    total2 += b;
  }
  if (total1 - total2 >= 0)
    cout << "Yes";
  else
    cout << "No";
}
