#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef pair pii; #define rep(i,x) for(int i=0;i<(int)(x);i++) int main(){ vector item; string a, b; cin >> a >> b; rep(i, a.size()) item.push_back(a[i]); rep(i, b.size()) item.erase(remove(item.begin(), item.end(), b[i]), item.end()); if (item.empty()) cout << "YES" << endl; else cout << "NO" << endl; return 0; }