#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100005;
int p[MAXN], rela[MAXN];
int T, N, M, a, b;
int main() {
  scanf("%d", &N);
  int temp1, temp2, ache;
  temp1 = temp2 = 0;
  for (int i = 1; i <= N; i++) {
    scanf("%d", &ache);
    temp1 += ache;
  }
  for (int i = 1; i <= N; i++) {
    scanf("%d", &ache);
    temp2 += ache;
  }
  if (temp1 < temp2)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
