#include <bits/stdc++.h>
using namespace std;
const long long init = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, s1 = 0, s2 = 0, temp;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> temp;
    s1 += temp;
  }
  for (int i = 0; i < n; ++i) {
    cin >> temp;
    s2 += temp;
  }
  if (s1 < s2)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
