#include <bits/stdc++.h>
using namespace std;
void solve() {
  int ar[26] = {0};
  string a, b, c;
  cin >> a >> b >> c;
  for (int i = 0; i < c.length(); i++) {
    int id = c[i] - 'A';
    ar[id]++;
  }
  for (int i = 0; i < a.length(); i++) {
    int id = a[i] - 'A';
    if (ar[id] > 0) {
      ar[id]--;
    } else {
      cout << "NO"
           << "\n";
      return;
    }
  }
  for (int i = 0; i < b.length(); i++) {
    int id = b[i] - 'A';
    if (ar[id] > 0) {
      ar[id]--;
    } else {
      cout << "NO"
           << "\n";
      return;
    }
  }
  for (int i = 0; i < 26; i++) {
    if (ar[i] > 0) {
      cout << "NO"
           << "\n";
      return;
    }
  }
  cout << "YES"
       << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
}
