#include <bits/stdc++.h>
using namespace std;
char _;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n], b[n];
  long long sum1 = 0, sum2 = 0;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    sum1 += a[i];
  }
  for (int i = 0; i < n; ++i) {
    cin >> b[i];
    sum2 += b[i];
  }
  (sum2 <= sum1) ? cout << "Yes" : cout << "No";
  return 0;
}
