#include <bits/stdc++.h>
using namespace std;
string s1, s2;
int main() {
  getline(cin, s1);
  getline(cin, s2);
  sort(s1.begin(), s1.end());
  sort(s2.begin(), s2.end());
  while (s1[0] == ' ') s1.erase(s1.begin());
  while (s2[0] == ' ') s2.erase(s2.begin());
  bool res = false;
  int j = 0;
  for (int i = 0; i < s1.length(); i++)
    if (s1[i] == s2[j]) {
      ++j;
      if (j == s2.length()) {
        res = true;
        break;
      }
    }
  if (res)
    cout << "YES";
  else
    cout << "NO";
}
