#include <bits/stdc++.h>
using namespace std;
int main() {
  string ar[3];
  int flag = 1;
  multiset<char> ms1;
  multiset<char> ms2;
  for (int i = 0; i < 3; i++) cin >> ar[i];
  for (int i = 0; i < 3; i++) {
    for (int j = 0; ar[i][j] != '\0'; j++) {
      if (i == 0 || i == 1)
        ms1.insert(ar[i][j]);
      else
        ms2.insert(ar[i][j]);
    }
  }
  multiset<char>::iterator it1, it2;
  if (ms1.size() == ms2.size()) {
    for (it1 = ms1.begin(), it2 = ms2.begin();
         it1 != ms1.end() || it2 != ms2.end(); it1++, it2++) {
      if (*it1 != *it2) {
        flag = 0;
        break;
      }
    }
  } else
    flag = 0;
  if (flag == 0)
    cout << "NO";
  else
    cout << "YES";
  return 0;
}
