#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5, OO = 0x3f3f3f3f;
int main() {
  int n;
  cin >> n;
  int cnt1 = 0, cnt2 = 0, x;
  for (int i = 0; i < n; i++) {
    cin >> x;
    cnt1 += x;
  }
  for (int i = 0; i < n; i++) {
    cin >> x;
    cnt2 += x;
  }
  cnt2 <= cnt1 ? puts("YES") : puts("NO");
  return 0;
}
