#include #include using namespace std; int main() { string A, B; cin >> A >> B; for(int i = 0; i < A.length(); ++i) { if((int)B.find(A[i]) == -1) { cout << "NO" << endl; return 0; } B.erase(B.find(A[i])); } cout << "YES" << endl; return 0; }