#include <bits/stdc++.h>
int main(void) {
  int n;
  while (scanf("%d", &n) != EOF) {
    int day1 = 0;
    int day2 = 0;
    int temp;
    for (int i = 0; i < n; i++) {
      scanf("%d", &temp);
      day1 = day1 + temp;
    }
    for (int i = 0; i < n; i++) {
      scanf("%d", &temp);
      day2 = day2 + temp;
    }
    if (day1 >= day2)
      printf("Yes");
    else
      printf("No");
  }
  return 0;
}
