#include <bits/stdc++.h>
using namespace std;
int main() {
  long i, j, k, l1, l2, m, n, o, p;
  long a[300], b[300];
  string s1, t1;
  getline(cin, s1);
  getline(cin, t1);
  l1 = s1.size();
  l2 = t1.size();
  for (i = 0; i < 300; i++) a[i] = 0;
  for (i = 0; i < l1; i++) {
    if (s1[i] != ' ') {
      k = s1[i];
      a[k]++;
    }
  }
  o = 0;
  p = l2;
  for (i = 0; i < l2; i++) {
    k = t1[i];
    if (t1[i] != ' ' && a[k] > 0) {
      a[k]--;
      o++;
    } else if (t1[i] == ' ') {
      p--;
    }
  }
  if (o == p)
    printf("YES\n");
  else
    printf("NO\n");
}
