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