#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = res * x;
    y = y >> 1;
    x = x * x;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string a, b, c;
  cin >> a >> b >> c;
  long long alphaofa[26] = {0};
  long long alphaofb[26] = {0};
  long long alphaofc[26] = {0};
  string ans = "YES";
  for (long long i = 0; i < a.length(); i++) alphaofa[a[i] - 'A']++;
  for (long long i = 0; i < b.length(); i++) alphaofb[b[i] - 'A']++;
  for (long long i = 0; i < c.length(); i++) alphaofc[c[i] - 'A']++;
  for (long long i = 0; i < a.length(); i++) {
    if (alphaofc[a[i] - 'A'] != (alphaofb[a[i] - 'A'] + alphaofa[a[i] - 'A']))
      ans = "NO";
  }
  for (long long i = 0; i < b.length(); i++) {
    if (alphaofc[b[i] - 'A'] != (alphaofb[b[i] - 'A'] + alphaofa[b[i] - 'A']))
      ans = "NO";
  }
  for (long long i = 0; i < c.length(); i++) {
    if (alphaofc[c[i] - 'A'] != (alphaofb[c[i] - 'A'] + alphaofa[c[i] - 'A']))
      ans = "NO";
  }
  cout << ans << "\n";
  return 0;
}
