#include <bits/stdc++.h>
using namespace std;
void solve() {
  int64_t freqa[26], freqA[26], freqb[26], freqB[26];
  memset(freqA, 0, sizeof(freqA));
  memset(freqa, 0, sizeof(freqa));
  memset(freqb, 0, sizeof(freqb));
  memset(freqB, 0, sizeof(freqB));
  string a, b;
  getline(cin, a);
  getline(cin, b);
  for (int64_t i = 0; i < a.size(); i++) {
    if (a[i] == ' ') {
      i++;
    }
    if (isupper(a[i])) {
      freqA[a[i] - 'A']++;
    } else
      freqa[a[i] - 'a']++;
  }
  for (int64_t i = 0; i < b.size(); i++) {
    if (b[i] == ' ') {
      i++;
    }
    if (isupper(b[i])) {
      freqB[b[i] - 'A']++;
    } else
      freqb[b[i] - 'a']++;
  }
  for (int64_t i = 0; i < 26; i++) {
    if (freqa[i] - freqb[i] < 0 || freqA[i] - freqB[i] < 0) {
      cout << "NO";
      return;
    }
  }
  cout << "YES";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int64_t test = 1;
  while (test--) {
    solve();
  }
  return 0;
}
