#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const int MAX = 4007;
const int MAX2 = 1000000;
const int MAXD = 20;
const int BASE = 1000000007;
const int MOD = 1000000007;
const int psz = 2000006;
int chToIn(char a) {
  int b;
  b = a - '0';
  return b;
}
int stToIn(string a) {
  int b;
  b = atoi(a.c_str());
  return b;
}
string appendChar(string s, char a) {
  s.append(1, a);
  return s;
}
int gcd(int a, int b) { return (b == 0 ? a : gcd(b, a % b)); }
int lcm(int a, int b) { return (a * (b / gcd(a, b))); }
string rev(string a) {
  int siz = (int)a.size();
  string res = "";
  for (int i = (siz)-1; i >= (0); --i) {
    res += a[i];
  }
  return res;
}
int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  vector<int> a, b;
  int suma = 0, sumb = 0;
  for (int i = 0; i < n; i++) {
    int num;
    cin >> num;
    a.push_back(num);
    suma += num;
  }
  for (int i = 0; i < n; i++) {
    int num;
    cin >> num;
    b.push_back(num);
    sumb += num;
  }
  if (sumb > suma)
    puts("No");
  else
    puts("Yes");
  return 0;
}
