/* * 69.cpp * * Created on: 2017/08/26 * Author: pinebooks */ #include #include #include using namespace std; int main() { string A, B; cin >> A >> B; if (A.size() != B.size()) { cout << "NO" << endl; return 0; } sort(A.begin(), A.end()); sort(B.begin(), B.end()); if (A == B) cout << "YES" << endl; else cout << "NO" << endl; return 0; }