#include <bits/stdc++.h>
using namespace std;
long long n, fir[50], sec[50], c1, c2, b;
int main() {
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> fir[i];
    c1 += fir[i];
  }
  for (long long i = 0; i < n; i++) {
    cin >> sec[i];
    c2 += sec[i];
  }
  if (c2 > c1)
    cout << "No";
  else
    cout << "Yes";
}
