#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// string a, b; cin >> a >> b; //////////////// 出力変数定義 //////////////// string result = "NO"; //////////////////// 処理 //////////////////// sort(a.begin(),a.end()); sort(b.begin(),b.end()); if (a==b) result = "YES"; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }