#include <bits/stdc++.h>
using namespace std;
int main() {
  string str1;
  string str2;
  int count[205] = {0};
  int ans = 0;
  getline(cin, str1);
  getline(cin, str2);
  for (int i = 0; i < str1.size(); i++) {
    count[str1[i]]++;
  }
  for (int i = 0; i < str2.size(); i++) {
    count[str2[i]]--;
    if (count[str2[i]] < 0 && str2[i] != ' ') {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
