#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[30], y[30], i, j, c;
  char a[3][101];
  while (cin >> a[0] >> a[1] >> a[2]) {
    c = 0;
    for (i = 0; i < 30; i++) x[i] = y[i] = 0;
    for (i = 0; i < 3; i++) {
      for (j = 0; a[i][j] != '\0'; j++) {
        if (i == 2) {
          if (a[i][j] == 'A')
            y[0]++;
          else if (a[i][j] == 'B')
            y[1]++;
          else if (a[i][j] == 'C')
            y[2]++;
          else if (a[i][j] == 'D')
            y[3]++;
          else if (a[i][j] == 'E')
            y[4]++;
          else if (a[i][j] == 'F')
            y[5]++;
          else if (a[i][j] == 'G')
            y[6]++;
          else if (a[i][j] == 'H')
            y[7]++;
          else if (a[i][j] == 'I')
            y[8]++;
          else if (a[i][j] == 'J')
            y[9]++;
          else if (a[i][j] == 'K')
            y[10]++;
          else if (a[i][j] == 'L')
            y[11]++;
          else if (a[i][j] == 'M')
            y[12]++;
          else if (a[i][j] == 'N')
            y[13]++;
          else if (a[i][j] == 'O')
            y[14]++;
          else if (a[i][j] == 'P')
            y[15]++;
          else if (a[i][j] == 'Q')
            y[16]++;
          else if (a[i][j] == 'R')
            y[17]++;
          else if (a[i][j] == 'S')
            y[18]++;
          else if (a[i][j] == 'T')
            y[19]++;
          else if (a[i][j] == 'U')
            y[20]++;
          else if (a[i][j] == 'V')
            y[21]++;
          else if (a[i][j] == 'W')
            y[22]++;
          else if (a[i][j] == 'X')
            y[23]++;
          else if (a[i][j] == 'Y')
            y[24]++;
          else if (a[i][j] == 'Z')
            y[25]++;
        } else {
          if (a[i][j] == 'A')
            x[0]++;
          else if (a[i][j] == 'B')
            x[1]++;
          else if (a[i][j] == 'C')
            x[2]++;
          else if (a[i][j] == 'D')
            x[3]++;
          else if (a[i][j] == 'E')
            x[4]++;
          else if (a[i][j] == 'F')
            x[5]++;
          else if (a[i][j] == 'G')
            x[6]++;
          else if (a[i][j] == 'H')
            x[7]++;
          else if (a[i][j] == 'I')
            x[8]++;
          else if (a[i][j] == 'J')
            x[9]++;
          else if (a[i][j] == 'K')
            x[10]++;
          else if (a[i][j] == 'L')
            x[11]++;
          else if (a[i][j] == 'M')
            x[12]++;
          else if (a[i][j] == 'N')
            x[13]++;
          else if (a[i][j] == 'O')
            x[14]++;
          else if (a[i][j] == 'P')
            x[15]++;
          else if (a[i][j] == 'Q')
            x[16]++;
          else if (a[i][j] == 'R')
            x[17]++;
          else if (a[i][j] == 'S')
            x[18]++;
          else if (a[i][j] == 'T')
            x[19]++;
          else if (a[i][j] == 'U')
            x[20]++;
          else if (a[i][j] == 'V')
            x[21]++;
          else if (a[i][j] == 'W')
            x[22]++;
          else if (a[i][j] == 'X')
            x[23]++;
          else if (a[i][j] == 'Y')
            x[24]++;
          else if (a[i][j] == 'Z')
            x[25]++;
        }
      }
    }
    for (i = 0; i < 26; i++) {
      if (x[i] != y[i]) {
        c = 1;
        break;
      }
    }
    if (c == 1)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
