#include <bits/stdc++.h>
using namespace std;
const int maxa = 100;
int a[maxa];
int b[maxa];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  int i, j;
  cin >> n;
  int sum1 = 0;
  int sum2 = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    sum1 += a[i];
  }
  for (i = 0; i < n; i++) {
    cin >> b[i];
    sum2 += b[i];
  }
  if (sum1 < sum2)
    cout << "No\n";
  else
    cout << "Yes\n";
  return 0;
}
