#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)(1e5 + 11);
string second, d;
int n, a1[26], a2[26], b1[26], b2[26];
int main() {
  getline(cin, second);
  getline(cin, d);
  for (int i = 0; i < second.length(); i++) {
    if (second[i] != ' ') {
      if ('A' <= second[i] && second[i] <= 'Z')
        a2[second[i] - 'A']++;
      else
        a1[second[i] - 'a']++;
    }
  }
  for (int i = 0; i < d.length(); i++) {
    if (d[i] != ' ') {
      if ('A' <= d[i] && d[i] <= 'Z')
        b2[d[i] - 'A']++;
      else
        b1[d[i] - 'a']++;
    }
  }
  for (int i = 0; i < 26; i++)
    if (b1[i] > a1[i] || b2[i] > a2[i]) {
      cout << "NO";
      return 0;
    }
  cout << "YES";
  return 0;
}
