#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s, a;
  int i, s2[26] = {0}, s1[26] = {0}, s3[26] = {0}, s4[26] = {0};
  getline(cin, s);
  getline(cin, a);
  for (char c : a) {
    if (c > 64 && c < 98 && c != ' ')
      s1[c - 65]++;
    else if (c != ' ')
      s2[c - 97]++;
  }
  for (char c : s) {
    if (c > 64 && c < 98 && c != ' ')
      s3[c - 65]++;
    else if (c != ' ')
      s4[c - 97]++;
  }
  for (i = 0; i < 26; i++) {
    if (s2[i] > s4[i] || s1[i] > s3[i]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
}
