#include <bits/stdc++.h>
int a[128];
int main() {
  char c[300];
  gets(c);
  int i;
  int n = strlen(c);
  for (i = 0; i < n; i++) {
    if (c[i] != ' ') a[int(c[i])]++;
  }
  gets(c);
  n = strlen(c);
  for (i = 0; i < n; i++) {
    if (c[i] != ' ')
      if (a[int(c[i])] > 0)
        a[int(c[i])]--;
      else
        break;
  }
  if (i < n)
    printf("NO\n");
  else
    printf("YES\n");
  return 0;
}
