#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(NULL);
  cin.tie(NULL);
  string a, b;
  getline(cin, a);
  getline(cin, b);
  map<char, long long> mp1, mp2;
  for (long long i = 0; i < (long long)(a.size()); i++) {
    if (isalpha(a[i])) {
      mp1[a[i]]++;
    }
  }
  for (long long i = 0; i < (long long)(b.size()); i++) {
    if (isalpha(b[i])) {
      mp2[b[i]]++;
    }
  }
  for (auto it : mp2) {
    if (mp1[it.first] < mp2[it.first]) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n";
}
