#include <bits/stdc++.h>
using namespace std;
int main() {
  string n, s;
  getline(cin, n);
  getline(cin, s);
  int a[26], b[26], a1[26], b1[26];
  int x = 0, y = 0, c = 0;
  for (int i = 0; i < 26; i++) {
    b[i] = 0;
    a[i] = 0;
    b1[i] = 0;
    a1[i] = 0;
  }
  for (int i = 0; i < s.size(); i++) {
    if (isupper(s[i]))
      a1[s[i] - 'A']++;
    else
      a[s[i] - 'a']++;
  }
  for (int i = 0; i < n.size(); i++) {
    if (isupper(n[i]))
      b1[n[i] - 'A']++;
    else
      b[n[i] - 'a']++;
  }
  int c1 = 0;
  for (int i = 0; i < 26; i++) {
    if (a[i] <= b[i]) c++;
    if (a1[i] <= b1[i]) c++;
  }
  if (c == 52)
    cout << "YES";
  else
    cout << "NO";
}
