#include <bits/stdc++.h>
using namespace std;
int n;
int a[28];
int b[28];
int main() {
  string s, t;
  getline(cin, s);
  map<char, int> mp;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == ' ')
      continue;
    else
      mp[s[i]] += 1;
  }
  getline(cin, s);
  bool correct = true;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == ' ')
      continue;
    else if (mp[s[i]] != 0)
      mp[s[i]] -= 1;
    else {
      correct = false;
      break;
    }
  }
  if (correct)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
