#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  int v1[256], v2[256];
  getline(cin, s1);
  getline(cin, s2);
  for (int i = 0; i < 256; ++i) {
    v1[i] = 0;
    v2[i] = 0;
  }
  for (int i = 0; i < s1.length(); ++i) ++v1[s1[i]];
  for (int i = 0; i < s2.length(); ++i) ++v2[s2[i]];
  for (int i = 0; i < 256; ++i)
    if (v2[i] > v1[i] && i != ' ') {
      cout << "NO" << endl;
      return 0;
    }
  cout << "YES" << endl;
  return 0;
}
