#include <bits/stdc++.h>
using namespace std;
void fast_IO_file() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
int main() {
  fast_IO_file();
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  map<char, long long int> m1;
  map<char, long long int> m2;
  for (long long int i = 0; i < s1.size(); i++) {
    if (s1[i] == ' ')
      continue;
    else
      m1[s1[i]]++;
  }
  for (long long int i = 0; i < s2.size(); i++) {
    if (s2[i] == ' ')
      continue;
    else
      m2[s2[i]]++;
  }
  long long int count = 0;
  for (long long int i = 0; i < s2.size(); i++) {
    if (s2[i] == ' ')
      continue;
    else {
      if (m1[s2[i]] < m2[s2[i]]) {
        count = 1;
        break;
      }
    }
  }
  if (count == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
