#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
void solve() {
  string s1, s2, s3;
  cin >> s1 >> s2 >> s3;
  int a[26] = {0}, flag = 0;
  for (int i = 0; i < s1.size(); i++) {
    a[s1[i] - 65]++;
  }
  for (int i = 0; i < s2.size(); i++) {
    a[s2[i] - 65]++;
  }
  for (int i = 0; i < s3.size(); i++) {
    a[s3[i] - 65]--;
  }
  for (int i = 0; i < 26; i++) {
    if (a[i] > 0 || a[i] < 0) flag = 1;
  }
  if (flag == 1)
    cout << "NO";
  else
    cout << "YES";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tc = 1;
  for (int t = 1; t <= tc; t++) {
    solve();
  }
}
