#include <bits/stdc++.h>
using namespace std;
string to_string(string s) { return '"' + s + '"'; }
string to_string(const char* s) { return to_string((string)s); }
string to_string(bool b) { return (b ? "true" : "false"); }
template <typename A, typename B>
string to_string(pair<A, B> p) {
  return "(" + to_string(p.first) + ", " + to_string(p.second) + ")";
}
template <typename A>
string to_string(A v) {
  bool first = true;
  string res = "{";
  for (const auto& x : v) {
    if (!first) {
      res += ", ";
    }
    first = false;
    res += to_string(x);
  }
  res += "}";
  return res;
}
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
  cerr << " " << to_string(H);
  debug_out(T...);
}
int XMOV[4] = {0, 0, 1, -1};
int YMOV[4] = {1, -1, 0, 0};
using namespace std;
class BLetter {
 public:
  void solve(std::istream& in, std::ostream& out) {
    string a, b;
    map<char, int> ma, mb;
    getline(in, a);
    getline(in, b);
    for (int i = (0); i <= ((int)(a.size()) - 1); i++) {
      if (a[i] != ' ' && a[i] != '\n') ma[a[i]]++;
    }
    for (int i = (0); i <= ((int)(b.size()) - 1); i++) {
      if (b[i] != ' ' && b[i] != '\n') mb[b[i]]++;
    }
    for (auto it = mb.begin(); it != mb.end(); ++it) {
      if (it->second > ma[it->first]) {
        out << "NO";
        return;
      } else {
        ma[it->first] -= it->second;
      }
    }
    out << "YES";
    return;
  }
};
int main() {
  BLetter solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
