#include <bits/stdc++.h>
using namespace std;
const long long N = 100005;
long long p = 1e9 + 7;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long sum = 0;
  for (long long i = 1; i <= n; i++) {
    long long a;
    cin >> a;
    sum += a;
  }
  for (long long i = 1; i <= n; i++) {
    long long a;
    cin >> a;
    sum -= a;
  }
  if (sum < 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
