#include <bits/stdc++.h>
using namespace ::std;
int jo(long long int jxo, long long int jyo) {
  long long int jhogeo = 1;
  for (long long int(jinto) = (0); (jinto) < (jyo); (jinto)++)
    jhogeo = jhogeo * jxo;
  return jhogeo;
}
char tobig(char toxbig) { return (toxbig - 0x20); }
char tolow(char toxlow) { return (toxlow + 0x20); }
int main() {
  string a, b, c;
  cin >> a >> b >> c;
  cout << ((a + b) < c ? "No" : "Yes");
}
