#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(20);
  long long int n;
  cin >> n;
  vector<long long int> a(n), b(n);
  for (long long int i = 0; i < n; i++) cin >> a[i];
  for (long long int i = 0; i < n; i++) cin >> b[i];
  long long int s1 = 0, s2 = 0;
  for (long long int i = 0; i < n; i++) {
    s1 += a[i];
    s2 += b[i];
  }
  if (s2 > s1)
    cout << "No";
  else
    cout << "Yes";
  ;
  return 0;
}
