#include <bits/stdc++.h>
using namespace std;
const double pi = 2 * acos(0.0);
int main() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  int arr1[150];
  int arr2[150];
  for (int i = 0; i < 150; i++) {
    arr1[i] = 0;
    arr2[i] = 0;
  }
  int n1 = s1.length();
  int n2 = s2.length();
  for (int i = 0; i < n1; i++) {
    if (s1[i] != ' ') {
      arr1[s1[i]]++;
    }
  }
  for (int i = 0; i < n2; i++) {
    if (s2[i] != ' ') {
      arr2[s2[i]]++;
    }
  }
  int f = 1;
  for (int i = 0; i < 150; i++) {
    if (arr2[i] > arr1[i]) {
      f = 0;
      break;
    }
  }
  if (f == 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
