#include <bits/stdc++.h>
using namespace std;
int main() {
  char s1[101];
  char s2[101];
  char potato[202];
  cin >> s1 >> s2 >> potato;
  int counter = 0;
  for (int i = 0; potato[i] != 0; i++) counter++;
  int k;
  int c = 0;
  for (int i = 0; s1[i] != 0; i++) {
    for (k = 0; potato[k] != 0; k++) {
      if (s1[i] == potato[k]) {
        potato[k] = -1;
        c++;
        break;
      }
    }
    if (k == counter) {
      cout << "NO";
      return 0;
    }
  }
  for (int i = 0; s2[i] != 0; i++) {
    for (k = 0; potato[k] != 0; k++) {
      if (s2[i] == potato[k]) {
        potato[k] = -1;
        c++;
        break;
      }
    }
    if (k == counter) {
      cout << "NO";
      return 0;
    }
  }
  if (c == counter)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
