#include <bits/stdc++.h>   using namespace std;   int main() {     string s1, s2;     getline(cin, s1);     getline(cin, s2);     sort(s1.begin(), s1.end());     sort(s2.begin(), s2.end());     int j(0);     for (int i = 0; i < s1.size(); i++) {       while (s2[j] ==    ) j++;       while (s1[i] ==    ) i++;       if (s1[i] == s2[j]) j++;       if (j == s2.size()) {         cout <<  YES ;         return 0;       }     }     cout <<  NO ;     return 0;   }   