#include <bits/stdc++.h>
using namespace std;
string s1, s2;
int est[128], nado[128];
int main() {
  int i, len_s1, len_s2;
  for (i = 0; i < 128; i++) {
    est[i] = 0;
    nado[i] = 0;
  }
  getline(cin, s1);
  len_s1 = s1.length();
  for (i = 0; i < len_s1; i++) est[int(s1[i])]++;
  getline(cin, s2);
  len_s2 = s2.length();
  for (i = 0; i < len_s2; i++) nado[int(s2[i])]++;
  bool check1 = true;
  for (i = 0; (i < 128) && check1; i++)
    if (i != 32)
      if (est[i] < nado[i]) check1 = false;
  if (check1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
