#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int i, n, x[55], y[55], a, b;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> x[i];
  }
  for (i = 0; i < n; i++) {
    cin >> y[i];
  }
  a = b = 0;
  for (i = 0; i < n; i++) {
    if (x[i] > y[i])
      a += (x[i] - y[i]);
    else
      b += (y[i] - x[i]);
  }
  if (a >= b) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
