#include using namespace std; typedef long long ll; int main() { string a, b; sort(a.begin(), a.end()); sort(b.begin(), b.end()); cout << (a == b ? "YES" : "NO") << endl; return 0; }