#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 10;
const int inf = 0x3f3f3f3f;
const int mod = 1e9 + 7;
int cnt[200];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s1, s2;
  while (getline(cin, s1) && getline(cin, s2)) {
    memset(cnt, 0, sizeof(cnt));
    for (auto ch : s1) {
      if (ch == ' ') continue;
      cnt[int(ch)]++;
    }
    for (auto ch : s2) {
      if (ch == ' ') continue;
      cnt[int(ch)]--;
    }
    bool f = 1;
    for (int i = 0; i < 200; i++) {
      if (cnt[i] < 0) f = 0;
    }
    if (f)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
