#include <bits/stdc++.h>
using namespace std;
int n, s1 = 0, s2 = 0;
int x[51], y[51];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x[i];
    s1 += x[i];
  }
  for (int i = 1; i <= n; i++) {
    cin >> y[i];
    s2 += y[i];
  }
  if (s1 >= s2)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
