#include <bits/stdc++.h>
using namespace std;
int main() {
  int histogram[26] = {};
  string line = " ";
  vector<string> lines;
  while (cin >> line) lines.push_back(line);
  line = lines.back();
  lines.pop_back();
  for (auto x : lines) {
    if (x.size()) {
      for (auto c : x) histogram[c - 'A']++;
    }
  }
  for (auto c : line) histogram[c - 'A']--;
  bool check = true;
  for (auto c : histogram) {
    if (c != 0) {
      check = false;
      break;
    }
  }
  if (check)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
