#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, *x, *y, sum1, sum2;
  cin >> n;
  x = new int[n];
  y = new int[n];
  for (int i = 0; i < n; i++) cin >> x[i];
  for (int i = 0; i < n; i++) cin >> y[i];
  sum1 = accumulate(x, x + n, sum1);
  sum2 = accumulate(y, y + n, sum2);
  cout << (sum1 >= sum2 ? "YES" : "NO");
}
