#include <bits/stdc++.h>
using namespace std;
string s, t;
int freq[100];
bool possible() {
  int pos;
  char letter;
  for (int i = 0; i < (int)t.size(); i++) {
    if (!isalpha(t[i])) continue;
    pos = t[i] - 'A';
    if (freq[pos] == 0) return false;
    freq[pos]--;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(0);
  getline(cin, s);
  getline(cin, t);
  for (int i = 0; i < (int)s.size(); i++) {
    if (isalpha(s[i])) freq[s[i] - 'A']++;
  }
  cout << (possible() ? "YES" : "NO") << "\n";
  return 0;
}
