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