#include <bits/stdc++.h>
using namespace std;
int arr[200] = {0};
int main() {
  string s, s1;
  getline(cin, s);
  getline(cin, s1);
  for (int i = 0; i < s.length(); i++) arr[s[i]]++;
  for (int i = 0; i < s1.length(); i++) arr[s1[i]]--;
  for (int i = 0; i < 200; i++)
    if (arr[i]) {
      if (i == ' ')
        continue;
      else if (arr[i] < 0)
        return cout << "NO" << endl, 0;
    }
  cout << "YES" << endl;
  return 0;
}
