#include <bits/stdc++.h>
using namespace std;
int main() {
  int len1, len2, t, flag, num[70];
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  memset(num, 0, sizeof(num));
  flag = 1;
  len1 = s1.size();
  len2 = s2.size();
  for (int i = 0; i < len1; i++) {
    t = s1[i] - 'A';
    num[t]++;
  }
  for (int i = 0; i < len2; i++) {
    t = s2[i] - 'A';
    num[t]--;
    if (num[t] < 0) {
      flag = 0;
      break;
    }
  }
  if (flag) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
