1 #include<iostream>
2 #include<vector>
3 #include<cstring>
4 #include<cstdio>
5 using namespace std;
6 string sortString(string s)
7 {
8 for(int i=0; i<s.size(); i++)
9 for(int j=i+1; j<s.size(); j++)
10 {
11 if(s[i]>=s[j])
12 {
13 char cmp=s[i];
14 s[i]=s[j];
15 s[j]=cmp;
16 }
17 }
18 return s;
19 }
20 int main()
21 {
22 string str1, str2, str;
23 int i;
24 // freopen("1.txt","r",stdin);
25 while(cin>>str1>>str2>>str)
26 {
27 int flag=1;
28 string s=str1+str2;
29 string ss=sortString(s);
30 string strs=sortString(str);
31 if(ss.size()!=strs.size())
32 {
33 cout<<"NO"<<endl;
34 break;
35 }
36 // cout<<"ss===="<<ss<<endl;
37 // cout<<"strs=="<<strs<<endl;
38 for(int i=0;i<ss.size();i++)
39 {
40 if(ss[i]!=strs[i])
41 {
42 flag=0;
43 break;
44 }
45 }
46 if(flag)
47 cout<<"YES"<<endl;
48 else
49 cout<<"NO"<<endl;
50 }
51 return 0;
52 }