#include <bits/stdc++.h>
using namespace std;
int main() {
  map<char, long long> mp, mop;
  string s, s1;
  getline(cin, s);
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] != ' ') mp[s[i]]++;
  }
  getline(cin, s1);
  for (long long i = 0; i < s1.size(); i++) {
    if (s1[i] != ' ') {
      mop[s1[i]]++;
      if (mop[s1[i]] > mp[s1[i]]) return cout << "NO", 0;
    }
  }
  cout << "YES";
  return 0;
}
