#include <bits/stdc++.h>
using namespace std;
int cnt[26 * 2];
int main() {
  string s, t;
  getline(cin, s);
  getline(cin, t);
  for (int i = 0; i < 26 * 2; ++i) cnt[i] = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] == ' ')
      continue;
    else if (s[i] >= 'a' && s[i] <= 'z')
      cnt[s[i] - 'a']++;
    else if (s[i] >= 'A' && s[i] <= 'Z')
      cnt[s[i] - 'A' + 26]++;
  }
  for (int i = 0; i < t.length(); ++i) {
    if (t[i] == ' ')
      continue;
    else if (t[i] >= 'a' && t[i] <= 'z')
      cnt[t[i] - 'a']--;
    else if (t[i] >= 'A' && t[i] <= 'Z')
      cnt[t[i] - 'A' + 26]--;
  }
  for (int i = 0; i < 26 * 2; ++i)
    if (cnt[i] < 0) {
      cout << "NO";
      return 0;
    }
  cout << "YES";
}
