#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  {
    string s1, s2;
    getline(cin, s1);
    getline(cin, s2);
    long long a[26] = {0}, b[26] = {0};
    for (long long i = 0; i < s1.size(); i++) {
      if (s1[i] >= 'A' && s1[i] <= 'Z')
        a[s1[i] - 'A']++;
      else if (s1[i] >= 'a' && s1[i] <= 'z')
        b[s1[i] - 'a']++;
    }
    bool flag = true;
    for (long long i = 0; i < s2.size(); i++) {
      if (s2[i] >= 'A' && s2[i] <= 'Z') {
        if (a[s2[i] - 'A'] == 0) {
          flag = false;
          break;
        }
        a[s2[i] - 'A']--;
      }
      if (s2[i] >= 'a' && s2[i] <= 'z') {
        if (b[s2[i] - 'a'] == 0) {
          flag = false;
          break;
        }
        b[s2[i] - 'a']--;
      }
    }
    if (flag)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
