#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s, s2;
  getline(cin, s);
  getline(cin, s2);
  map<char, int> mp;
  for (int i = 0; i < s.length(); i++) {
    mp[s[i]]++;
  }
  bool flg = true;
  for (int i = 0; i < s2.length(); i++) {
    if (!mp.count(s2[i]) || mp[s2[i]] == 0) {
      flg = false;
      break;
    }
    if (s2[i] != ' ') mp[s2[i]]--;
  }
  if (flg)
    cout << "YES";
  else
    cout << "NO";
}
void trials() {
  int t;
  for (cin >> t; t--; cout << endl) {
    solve();
  }
}
int main() { solve(); }
