#include <bits/stdc++.h>
using namespace std;
int main() {
  string str1, str2, str3;
  cin >> str1 >> str2 >> str3;
  for (int i = 0; i < (int)str1.length(); i++)
    for (int c = 0; c < (int)str3.length(); c++)
      if (str1[i] == str3[c]) {
        str3[c] = ' ';
        break;
      }
  for (int i = 0; i < (int)str2.length(); i++)
    for (int c = 0; c < (int)str3.length(); c++)
      if (str2[i] == str3[c]) {
        str3[c] = ' ';
        break;
      }
  bool flag = false;
  for (int i = 0; i < (int)str3.length(); i++)
    if (str3[i] != ' ') {
      flag = true;
      break;
    }
  if (str1.length() + str2.length() > str3.length())
    cout << "NO";
  else
    cout << (flag ? "NO" : "YES");
  return 0;
}
