#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  string text;
  getline(cin, str);
  getline(cin, text);
  int hasd[256] = {0};
  for (int i = 0; i < str.length(); i++) {
    hasd[str[i]]++;
  }
  for (int i = 0; i < text.length(); i++) {
    if (hasd[text[i]] == 0) {
      cout << "NO" << endl;
      return 0;
    }
    if (text[i] != 32) hasd[text[i]]--;
  }
  cout << "YES" << endl;
  return 0;
}
