#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  map<char, int> count;
  for (char c : s1) {
    if (c != ' ') {
      count[c]++;
    }
  }
  int i = 0;
  for (; i < s2.size(); i++) {
    if (s2[i] != ' ') {
      if (count[s2[i]] <= 0) {
        break;
      } else {
        count[s2[i]]--;
      }
    }
  }
  if (i == s2.size()) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
