#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  int L1 = s1.size();
  int L2 = s2.size();
  int cont[256];
  memset(cont, 0, sizeof cont);
  for (int i = 0; i < L1; ++i) ++cont[s1[i]];
  for (int i = 0; i < L2; ++i) --cont[s2[i]];
  bool ok = true;
  for (int i = 0; i < 256; ++i)
    if (i != (int)' ' && cont[i] < 0) ok = false;
  cout << (ok ? "YES" : "NO") << '\n';
  return 0;
}
