#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  int a;
  for (int i = 0; i < s2.size(); i++) {
    if (s2[i] == ' ') continue;
    a = 0;
    for (int j = 0; j < s1.size(); j++)
      if (s1[j] == ' ')
        continue;
      else if (s1[j] == s2[i]) {
        a = 1;
        s1.erase(j, 1);
        break;
      }
    if (!a) {
      cout << "NO";
      break;
    }
  }
  if (a) cout << "YES";
}
