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