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