#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[55], b[55];
  int n, i, j, sum = 0, sum1 = 0, s = 0, s1 = 0, count = 0, count1 = 0, k = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum += a[i];
  }
  for (i = 0; i < n; i++) {
    scanf("%d", &b[i]);
    sum1 += b[i];
  }
  if (sum < sum1) {
    printf("No\n");
  } else {
    printf("Yes\n");
  }
  return 0;
}
