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