#include <bits/stdc++.h>
bool solve(const std::vector<size_t>& x, const std::vector<size_t>& y) {
  const size_t n = x.size();
  size_t sums[2] = {};
  for (size_t i = 0; i < n; ++i) {
    sums[0] += x[i];
    sums[1] += y[i];
  }
  return sums[1] <= sums[0];
}
int main() {
  size_t n;
  std::cin >> n;
  std::vector<size_t> x(n);
  for (size_t i = 0; i < n; ++i) std::cin >> x[i];
  std::vector<size_t> y(n);
  for (size_t i = 0; i < n; ++i) std::cin >> y[i];
  std::cout << (solve(x, y) ? "Yes" : "No") << '\n';
  return 0;
}
