#include <bits/stdc++.h>
using namespace std;
map<char, int> a, b;
string s1, s2, s3;
int main() {
  cin >> s1;
  cin >> s2;
  for (int i = 0; i < s1.size(); i++) a[s1[i]]++;
  for (int i = 0; i < s2.size(); i++) a[s2[i]]++;
  cin >> s3;
  for (int i = 0; i < s3.size(); i++) b[s3[i]]++;
  for (int i = 0; i < s3.size(); i++)
    if (b[s3[i]] != a[s3[i]]) {
      cout << "NO";
      return 0;
    }
  for (int i = 0; i < s1.size(); i++)
    if (b[s1[i]] != a[s1[i]]) {
      cout << "NO";
      return 0;
    }
  for (int i = 0; i < s2.size(); i++)
    if (b[s2[i]] != a[s2[i]]) {
      cout << "NO";
      return 0;
    }
  cout << "YES";
  return 0;
}
