#include <bits/stdc++.h>
using namespace std;
map<char, int> isAvail;
int main() {
  char heading[201];
  char toText[201];
  bool okay = true;
  cin.getline(heading, 200);
  cin.getline(toText, 200);
  int i;
  for (i = 0; heading[i]; ++i) isAvail[heading[i]]++;
  for (i = 0; toText[i]; ++i) {
    if (toText[i] != ' ') {
      if (!isAvail[toText[i]])
        break;
      else
        isAvail[toText[i]] -= 1;
    }
  }
  if (toText[i])
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
