#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  int have[256] = {}, needed[256] = {};
  for (int i = 0; i < s1.size(); ++i) {
    if (isalpha(s1[i])) have[s1[i]]++;
  }
  for (int j = 0; j < s2.size(); ++j) {
    if (isalpha(s2[j])) needed[s2[j]]++;
  }
  for (int k = 0; k < 256; ++k) {
    if (have[k] < needed[k]) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}
