#include <bits/stdc++.h>
using namespace std;
const int N = INT_MAX;
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  int T = 1;
  for (int z = 1; z < T + 1; z += 1) {
    bool f = 1;
    map<char, int> make_pair;
    string s1, s2;
    getline(cin, s1);
    getline(cin, s2);
    for (int i = 0; i < s1.length(); i += 1) make_pair[s1[i]]++;
    for (int i = 0; i < s2.length(); i += 1) {
      if (make_pair[s2[i]] > 0 || s2[i] == ' ') {
        make_pair[s2[i]]--;
        continue;
      } else {
        f = 0;
        break;
      }
    }
    if (f)
      cout << "YES";
    else
      cout << "NO";
  }
  return 0;
}
