#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 7;
int n, c, fr1[N], l1, l2;
char s1[N], s2[N];
int main() {
  gets(s1);
  gets(s2);
  l1 = strlen(s1);
  l2 = strlen(s2);
  for (int i = 0; i < l1; i++) {
    if (s1[i] != ' ') fr1[s1[i]]++;
  }
  for (int i = 0; i < l2; i++) {
    if (s2[i] != ' ') {
      if (fr1[s2[i]] == 0) {
        printf("NO");
        return 0;
      }
      fr1[s2[i]]--;
    }
  }
  printf("YES");
  return 0;
}
