#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s1;
  getline(cin, s1);
  string s2;
  getline(cin, s2);
  stringstream ss(s1);
  string word;
  map<char, int> mp1;
  while (ss >> word) {
    for (auto i : word) mp1[i]++;
  }
  stringstream s(s2);
  string w;
  map<char, int> mp2;
  while (s >> w) {
    for (auto i : w) {
      mp2[i]++;
    }
  }
  for (char c = 'a'; c <= 'z'; c++) {
    if (mp1[c] < mp2[c]) {
      cout << "NO";
      return;
    }
    if (mp1[c - 32] < mp2[c - 32]) {
      cout << "NO";
      return;
    }
  }
  cout << "YES";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
