#include <bits/stdc++.h>
int main() {
  int n, i = 0, s = 0, s1 = 0;
  scanf("%d", &n);
  int a[n], a1[n];
  while (i != n) {
    scanf("%d", &a[i]);
    s += a[i];
    i++;
  }
  i = 0;
  while (i != n) {
    scanf("%d", &a1[i]);
    s1 += a1[i];
    i++;
  }
  if (s1 > s)
    printf("NO\n");
  else
    printf("YES\n");
  return 0;
}
