#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 28;
const int maxn = 100 + 10;
int a[1111111];
int sum1 = 0, sum2 = 0;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum1 += a[i];
  }
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum2 += a[i];
  }
  if (sum1 - sum2 >= 0) {
    printf("Yes\n");
  } else
    printf("No\n");
}
