#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  string s1, t;
  getline(cin, s1);
  getline(cin, t);
  int n = s1.size();
  int frq[200 + 1];
  memset(frq, 0, sizeof(frq));
  for (int i = 0; i < n; i++) frq[s1[i]]++;
  int ans = true;
  for (int i = 0; i < t.size(); i++) {
    if (t[i] == ' ') continue;
    if (!frq[t[i]]) {
      ans = false;
      break;
    }
    frq[t[i]]--;
  }
  if (ans)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
