#include <bits/stdc++.h>
int main() {
  int i, n, x = 0, y = 0, k;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &k);
    x += k;
  }
  for (i = 0; i < n; i++) {
    scanf("%d", &k);
    y += k;
  }
  if (x < y)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
