#include <iostream>
#include <string>
using namespace std;
#include <string>
using namespace std;
int main()
{
string nowcoder,brother;
while (cin>>nowcoder>>brother)
{
if(nowcoder.length()<=brother.length())
{
cout<<"No"<<endl;
return 0;
}
int hashTable [26]={0};
for (int i=0;i<nowcoder.length();i++){
hashTable[nowcoder[i]-'A']++;
}
for (int i=0;i<brother.length();i++){
if (hashTable[brother[i]-'A']==0){//比较存在于哈希表中的字母弟弟有,哥哥却没有
cout<<"No"<<endl;
return 0;
}
}
cout<<"Yes"<<endl;
}
return 0;
}
{
string nowcoder,brother;
while (cin>>nowcoder>>brother)
{
if(nowcoder.length()<=brother.length())
{
cout<<"No"<<endl;
return 0;
}
int hashTable [26]={0};
for (int i=0;i<nowcoder.length();i++){
hashTable[nowcoder[i]-'A']++;
}
for (int i=0;i<brother.length();i++){
if (hashTable[brother[i]-'A']==0){//比较存在于哈希表中的字母弟弟有,哥哥却没有
cout<<"No"<<endl;
return 0;
}
}
cout<<"Yes"<<endl;
}
return 0;
}