#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  unordered_map<char, int> m;
  for (int i = 0; i < s1.size(); i++) {
    m[s1[i]]++;
  }
  for (int i = 0; i < s2.size(); i++) {
    if (s2[i] != ' ') {
      if (m.find(s2[i]) != m.end()) {
        if (m[s2[i]] > 0) {
          m[s2[i]]--;
        } else {
          cout << "NO" << endl;
          return 0;
        }
      } else {
        cout << "NO" << endl;
        return 0;
      }
    }
  }
  cout << "YES" << endl;
  return 0;
}
