#include <bits/stdc++.h>
using namespace std;
string s, ss;
int main() {
  getline(cin, s);
  getline(cin, ss);
  bool ok = true;
  for (char x : ss) {
    bool f = false;
    if (x == ' ') continue;
    for (int i = 0; s[i]; i++) {
      if (s[i] == x) {
        f = true;
        s[i] = '.';
        break;
      }
    }
    ok &= f;
  }
  if (ok)
    puts("YES");
  else
    puts("NO");
}
