#include <bits/stdc++.h>
using namespace std;
int main() {
  int flag = 1;
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  map<char, int> h;
  map<char, int> H;
  for (int i = 0; i < s1.length(); i++) {
    if (s1[i] >= 'a' && s1[i] <= 'z')
      h[s1[i]]++;
    else if (s1[i] >= 'A' && s1[i] <= 'Z')
      H[s1[i]]++;
  }
  for (int i = 0; i < s2.length(); i++) {
    if (s2[i] >= 'a' && s2[i] <= 'z') {
      auto s = h.find(s2[i]);
      if (s != h.end()) {
        if (s->second > 0) {
          flag = 1;
          s->second = s->second - 1;
        } else {
          flag = 0;
          break;
        }
      } else {
        flag = 0;
        break;
      }
    } else if (s2[i] >= 'A' && s2[i] <= 'Z') {
      auto s = H.find(s2[i]);
      if (s != H.end()) {
        if (s->second > 0) {
          flag = 1;
          s->second = s->second - 1;
        } else {
          flag = 0;
          break;
        }
      } else {
        flag = 0;
        break;
      }
    }
  }
  if (flag == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
