#include <bits/stdc++.h>
using namespace std;
int main() {
  string str1, str2, str3;
  cin >> str1;
  cin >> str2;
  cin >> str3;
  int i, j = 0;
  int str1_arr[26] = {0};
  int str2_arr[26] = {0};
  int str3_arr[26] = {0};
  for (i = 0; i < str1.length(); i++) str1_arr[str1[i] - 65] += 1;
  for (i = 0; i < str2.length(); i++) str2_arr[str2[i] - 65] += 1;
  for (i = 0; i < str3.length(); i++) str3_arr[str3[i] - 65] += 1;
  int flag = -1, flag2 = -1;
  for (i = 0; i < 26; i++) {
    if (str1_arr[i] + str2_arr[i] > str3_arr[i]) {
      flag2 = 1;
      break;
    }
    if (str1_arr[i] + str2_arr[i] < str3_arr[i]) {
      flag = 1;
      break;
    }
  }
  if (flag == 1 || flag2 == 1)
    cout << "NO"
         << "\n";
  else
    cout << "YES"
         << "\n";
  return 0;
}
