#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
const int INF = 0x7fffffff;
const int mod = 1e9 + 7;
const int maxn = 3030;
int n, x, suma, sumb;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    suma += x;
  }
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    sumb += x;
  }
  if (suma >= sumb)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
