#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  int c;
  while (a != 0) {
    c = a;
    a = b % a;
    b = c;
  }
  return b;
}
bool prime(int x) {
  if (x == 2) return true;
  if (x % 2 == 0 || x < 2) return false;
  for (int i = 3; i * i <= x; i += 2)
    if (x % i == 0) return false;
  return true;
}
long long power(int num, int p) {
  long long sum = 1;
  for (int i = 0; i < p; i++) sum *= num;
  return sum;
}
int main() {
  string str1, str2;
  getline(cin, str1);
  getline(cin, str2);
  int x;
  bool f = 1;
  for (int i = 0; i < str2.length(); i++) {
    if (str2.at(i) == ' ') continue;
    x = str1.find(str2.at(i));
    if (x == -1) {
      f = false;
      break;
    }
    str1.erase(str1.begin() + x);
  }
  if (f)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
