#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, flag, i, j, t = 1;
  string str1, str2;
  getline(cin, str1);
  getline(cin, str2);
  for (i = 0; i < str2.length(); i++)
    if (str2[i] != '\n' && str2[i] != ' ') {
      flag = 0;
      for (j = 0; j < str1.length(); j++) {
        if (str2[i] == str1[j]) {
          str1[j] = '*', flag = 1;
          break;
        }
      }
      if (flag == 0) t = 0;
    }
  if (t == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
