#include #include #include #include #include #include using namespace std; int main() { string a, b; cin >> a >> b; sort(a.begin(), a.end()); sort(b.begin(), b.end()); if (a == b) cout << "YES" << endl; else cout << "NO" << endl; //int stringSpan = a.size(); //for (int i = 0; i <= stringSpan; i++) { // for (int j = 0; j < stringSpan; j++) { // if (a[i] == b[j]) { // } // } //} return 0; }