#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ss;
  getline(cin, s);
  getline(cin, ss);
  int ara[500];
  memset(ara, 0, sizeof ara);
  for (auto x : s)
    if (isalpha(x)) ara[x]++;
  bool ok = true;
  for (auto x : ss) {
    if (isalpha(x)) {
      if (!ara[x]) {
        ok = false;
        break;
      } else
        ara[x]--;
    }
  }
  if (ok)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
