#include <bits/stdc++.h>
using namespace std;
int a[256], i, q;
char s[201];
int main() {
  gets(s);
  while (s[i]) a[s[i++]]++;
  a[' '] += 200;
  i = 0;
  gets(s);
  while (s[i])
    if (--a[s[i++]] < 0) q = 1;
  puts(q ? "NO" : "YES");
  return 0;
}
