#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=a;i()) #define SORTV(v) sort(v.begin(),v.end()) #define ALL(v) (v).begin(),(v).end() #define MOD 1000000007 #define INF LLONG_MAX/2 typedef long long ll; typedef tuple Tb; typedef pair Pii; typedef vector Vi; template void chmax(T& a, T b) {if(a < b){a=b;}} template void chmin(T& a, T b) {if(a > b){a=b;}} template void YesNo(T& a) {if(a){cout << "Yes" << ENT;}else{cout << "No" << ENT;}} template void YESNO(T& a) {if(a){cout << "YES" << ENT;}else{cout << "NO" << ENT;}} int atcoder(){ string s,t; cin>>s>>t; SORTV(s); SORTV(t); bool ans=(s==t); YESNO(ans); return 0; } signed main() { cin.tie(0); ios::sync_with_stdio(false); atcoder(); return 0; }