#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, x, sum = 0, sum2 = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> x, sum += x;
  for (int i = 1; i <= n; i++) cin >> x, sum2 += x;
  if (sum2 <= sum)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
