#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int i, j, l1, l2, f = 0, c = 0, c1 = 0, c2 = 0, c11 = 0, c22 = 0;
  string s1, s2;
  getline(cin, s1);
  getline(cin, s2);
  l1 = s1.size();
  l2 = s2.size();
  for (i = 0; i < l1; i++) {
    if (s1[i] == ' ') {
      c11++;
    }
  }
  for (i = 0; i < l2; i++) {
    if (s2[i] == ' ') {
      c22++;
    }
  }
  char arr[l1], brr[l2];
  for (i = 0; i < l1; i++) {
    arr[i] = s1[i];
    c1++;
  }
  for (i = 0; i < l2; i++) {
    brr[i] = s2[i];
    c2++;
  }
  for (i = 0; i < l2; i++) {
    for (j = 0; j < l1; j++) {
      if (brr[i] == arr[j] && brr[i] != ' ') {
        arr[j] = '-1';
        c++;
        break;
      }
    }
  }
  if (c2 - c22 == c) {
    cout << "YES" << '\n';
  } else {
    cout << "NO" << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}
