#include <bits/stdc++.h>
int main(void) {
  char tab1[128] = {0};
  char tab2[128] = {0};
  char c;
  while ((c = getchar()) != '\n') tab1[c]++;
  while ((c = getchar()) != '\n') tab2[c]++;
  tab2[32] = tab1[32];
  for (int i = 0; i < 128; i++)
    if (tab2[i] > tab1[i]) {
      printf("NO\n");
      return 0;
    }
  printf("YES\n");
  return 0;
}
