#include <bits/stdc++.h>
using namespace std;
int main() {
  int c[256] = {0};
  string a, b;
  getline(cin, a, '\n');
  getline(cin, b, '\n');
  int la = a.length(), lb = b.length();
  for (int i = 0; i < la; i++)
    if (a[i] > 60) c[a[i]]++;
  for (int i = 0; i < lb; i++)
    if (b[i] > 60) {
      c[b[i]]--;
      if (c[b[i]] < 0) {
        cout << "NO";
        return 0;
      }
    }
  cout << "YES";
  return 0;
}
