#include <bits/stdc++.h>
using namespace std;
int n, sa, sb, x, y;
int a[100], b[100];
int Read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int main() {
  n = Read();
  for (int i = 1; i <= n; ++i) a[i] = Read(), sa += a[i];
  for (int i = 1; i <= n; ++i) b[i] = Read(), sb += b[i];
  if (sa < sb) {
    puts("No");
    return 0;
  }
  puts("Yes");
  return 0;
}
