#include <bits/stdc++.h>
using namespace std;
int n;
int tmp, sum1 = 0, sum2 = 0;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &tmp);
    sum1 += tmp;
  }
  for (int i = 0; i < n; i++) {
    scanf("%d", &tmp);
    sum2 += tmp;
  }
  if (sum1 >= sum2)
    puts("Yes");
  else
    puts("No");
}
