#include <bits/stdc++.h>
using namespace std;
int cs[500], ct[500], cr[500];
int main() {
  string s, t, r;
  cin >> s >> t >> r;
  for (int i = 0; i <= r.size(); i++)
    for (int j = 0; j <= s.size(); j++)
      if (s[j] == r[i]) {
        s[j] = 0;
        r[i] = 0;
      }
  for (int i = 0; i <= r.size(); i++)
    for (int j = 0; j <= t.size(); j++)
      if (t[j] == r[i]) {
        t[j] = 0;
        r[i] = 0;
      }
  for (int i = 0; i <= s.size(); i++)
    if (s[i] != 0) {
      cout << "NO" << endl;
      return 0;
    }
  for (int i = 0; i <= t.size(); i++)
    if (t[i] != 0) {
      cout << "NO" << endl;
      return 0;
    }
  for (int i = 0; i <= r.size(); i++)
    if (r[i] != 0) {
      cout << "NO" << endl;
      return 0;
    }
  cout << "YES" << endl;
}
