#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, x;
  cin >> n;
  int s1 = 0, s2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    s1 += x;
  }
  for (int i = 0; i < n; i++) {
    cin >> x;
    s2 += x;
  }
  cout << (s2 <= s1 ? "YES" : "NO");
  return 0;
}
