#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int s1 = 0, s2 = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    s1 += a;
  }
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    s2 += a;
  }
  if (s1 < s2)
    cout << "No\n";
  else
    cout << "Yes\n";
}
