#include <bits/stdc++.h>
using namespace std;
void solve();
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
void solve() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  multiset<char> m1;
  multiset<char> m2;
  for (long long i = 0; i < s1.length(); i++) {
    if (s1.at(i) != ' ') m1.insert(s1.at(i));
  }
  for (long long i = 0; i < s2.length(); i++) {
    if (s2.at(i) != ' ') m2.insert(s2.at(i));
  }
  long long y = 1;
  for (auto it = m2.begin(); it != m2.end(); ++it) {
    if (find(m1.begin(), m1.end(), *it) != m1.end())
      m1.erase(find(m1.begin(), m1.end(), *it));
    else {
      y = 0;
      break;
    }
  }
  if (y == 1)
    cout << "YES";
  else
    cout << "NO";
  return;
}
