#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[210], t[210];
  gets(s);
  gets(t);
  int c[26] = {0}, d[26] = {0}, i, n = strlen(s), m = strlen(t);
  for (i = 0; i < n; i++) {
    if (islower(s[i]))
      c[s[i] - 'a']++;
    else if (isupper(s[i]))
      d[s[i] - 'A']++;
  }
  for (i = 0; i < m; i++) {
    if (t[i] != ' ') {
      if (islower(t[i]))
        if (c[t[i] - 'a'] > 0) {
          c[t[i] - 'a']--;
        } else {
          cout << "NO";
          return 0;
        }
      if (isupper(t[i]))
        if (d[t[i] - 'A'] > 0) {
          d[t[i] - 'A']--;
        } else {
          cout << "NO";
          return 0;
        }
    }
  }
  cout << "YES";
  return 0;
}
