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