#include <bits/stdc++.h>
using namespace std;
const int MAXLEN = 205;
char s1[MAXLEN], s2[MAXLEN];
int cnt[128];
int main() {
  int len1, len2;
  bool ans = true;
  gets(s1);
  gets(s2);
  len1 = strlen(s1);
  len2 = strlen(s2);
  cnt[' '] = MAXLEN;
  for (int i = 0; i < len1; i++) cnt[s1[i]]++;
  for (int i = 0; i < len2; i++)
    if (cnt[s2[i]] > 0)
      cnt[s2[i]]--;
    else {
      ans = false;
      break;
    }
  printf("%s\n", ans ? "YES" : "NO");
  return 0;
}
