#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int sz = 3e5 + 10;
const int szz = sz * 4;
const ll mod = 1e9 + 7;
const double EPS = 1e-9;
string a, b;
map<char, int> mp;
int fl;
int main() {
  while (getline(cin, a) && getline(cin, b)) {
    mp.clear();
    fl = 1;
    for (const char& c : a) mp[c]++;
    for (const char& c : b)
      if (c != ' ') {
        if (mp[c] == 0)
          fl = 0;
        else
          mp[c]--;
      }
    puts(fl ? "YES" : "NO");
  }
  return 0;
}
