#include <bits/stdc++.h>
using namespace std;
map<char, long long> m;
string s, t;
bool flag = 1;
void solve() {
  getline(cin, s);
  getline(cin, t);
  for (long long i = 0; i < (long long)s.size(); i++) {
    if (s[i] != ' ') m[s[i]]++;
  }
  for (long long i = 0; i < (long long)t.size(); i++) {
    if (t[i] != ' ') {
      if (m[t[i]] > 0)
        m[t[i]]--;
      else {
        flag = 0;
        break;
      }
    }
  }
  if (flag == 1)
    cout << "YES";
  else
    cout << "NO";
}
void prep() {}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  prep();
  cout << fixed << setprecision(12);
  while (t--) solve();
  return 0;
}
