#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
using namespace std;
void solve() {
  string s;
  getline(cin, s);
  string pat;
  getline(cin, pat);
  char low[26] = {0};
  char upp[26] = {0};
  for (int i = (0); i < (s.length()); i++) {
    if (s[i] == ' ') continue;
    if (s[i] >= 'A' && s[i] <= 'Z')
      upp[s[i] - 'A']++;
    else if (s[i] >= 'a' && s[i] <= 'z')
      low[s[i] - 'a']++;
  }
  for (int i = (0); i < (pat.length()); i++) {
    if (pat[i] == ' ') continue;
    if (pat[i] >= 'A' && pat[i] <= 'Z') {
      if (upp[pat[i] - 'A'] <= 0) {
        cout << "NO";
        return;
      }
      upp[pat[i] - 'A']--;
    }
    if (pat[i] >= 'a' && pat[i] <= 'z') {
      if (low[pat[i] - 'a'] <= 0) {
        cout << "NO";
        return;
      }
      low[pat[i] - 'a']--;
    }
  }
  cout << "YES";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
