#include <bits/stdc++.h>
using namespace std;
int N;
int x[100005], y[100005];
int sx, sy;
int main() {
  ios::sync_with_stdio(0);
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> x[i];
    sx += x[i];
  }
  for (int i = 1; i <= N; i++) {
    cin >> y[i];
    sy += y[i];
  }
  if (sx >= sy)
    puts("Yes");
  else
    puts("No");
  return 0;
}
