#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, x;
  getline(cin, s);
  getline(cin, x);
  int a[26] = {0};
  int b[26] = {0};
  int l = s.length();
  int l1 = x.length();
  for (int i = 0; i < l; i++) {
    if (isupper(s[i]) && s[i] != ' ')
      a[s[i] - 'A']++;
    else if (s[i] != ' ')
      b[s[i] - 'a']++;
  }
  int i = 0;
  while (i < l1) {
    if (isupper(x[i]) && a[x[i] - 'A'] <= 0)
      break;
    else if (isupper(x[i]) && a[x[i] - 'A'] > 0)
      a[x[i] - 'A']--;
    else if (islower(x[i]) && b[x[i] - 'a'] <= 0)
      break;
    else if (islower(x[i]) && b[x[i] - 'a'] > 0)
      b[x[i] - 'a']--;
    i++;
  }
  if (i == l1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
