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