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