#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 7;
const int N = 5e3 + 10;
int main() {
  int n;
  cin >> n;
  int sum1 = 0;
  int 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;
  }
  if (sum1 >= sum2)
    puts("Yes");
  else
    puts("No");
  return 0;
}
