#include <bits/stdc++.h>
using namespace std;
const int maxn = 55;
int n;
int xi[maxn], yi[maxn];
int ans1 = 0, ans2 = 0;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &xi[i]), ans1 += xi[i];
  for (int i = 1; i <= n; i++) scanf("%d", &yi[i]), ans2 += yi[i];
  if (ans1 < ans2)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
