#include <bits/stdc++.h>
using namespace std;
int main() {
  char first[100];
  char second[100];
  char set[100];
  int i, j;
  cin >> first;
  cin >> second;
  cin >> set;
  int len_f = strlen(first);
  int len_s = strlen(second);
  int len_set = strlen(set);
  for (i = 0; i < len_set; i++) {
    for (j = 0; j < len_f; j++) {
      if (set[i] == first[j] && set[i] != '0' && first[j] != '0') {
        set[i] = '0';
        first[j] = '0';
      }
    }
    for (j = 0; j < len_s; j++) {
      if (set[i] == second[j] && set[i] != '0' && second[j] != '0') {
        set[i] = '0';
        second[j] = '0';
      }
    }
  }
  for (i = 0; i < len_f; i++) {
    if (first[i] != '0') {
      cout << "NO";
      return 0;
    }
  }
  for (i = 0; i < len_s; i++) {
    if (second[i] != '0') {
      cout << "NO";
      return 0;
    }
  }
  for (i = 0; i < len_set; i++) {
    if (set[i] != '0') {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
  return 0;
}
