#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int sum1 = 0, sum2 = 0;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    sum1 += x;
  }
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    sum2 += x;
  }
  cout << (sum2 <= sum1 ? "Yes" : "No");
}
