#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100100;
int n;
int main() {
  ios::sync_with_stdio(0);
  while (cin >> n) {
    long long a, s1 = 0, s2 = 0;
    for (int i = (0); i < (n); i++) {
      cin >> a;
      s1 += a;
    }
    for (int i = (0); i < (n); i++) {
      cin >> a;
      s2 += a;
    }
    cout << (s1 >= s2 ? "Yes" : "No") << endl;
  }
  return 0;
}
