#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1;
  getline(cin, s);
  getline(cin, s1);
  int k = 0;
  for (int i = 0; i < (int)s1.size(); i++) {
    if (s1[i] != ' ') {
      for (int j = 0; j < (int)s.size(); j++) {
        if (s1[i] == s[j]) {
          s[j] = ' ';
          k++;
          break;
        }
      }
    } else
      k++;
  }
  if (k == (int)s1.size())
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
