#include <bits/stdc++.h>
using namespace std;
int x[55], y[55];
int main(int argc, char** argv) {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &x[i]);
  for (int i = 1; i <= n; i++) scanf("%d", &y[i]);
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    sum += x[i] - y[i];
  }
  if (sum >= 0)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
