#include <iostream>
#include <set>
using namespace std;
int main() {
string s, t;
getline(cin, s);
getline(cin, t);
set<char> char_set;
for(const char& c : s)
char_set.insert(c);
for(const char& c : t)
char_set.erase(c);
if(char_set.empty()){
cout << "true" << endl;
}else{
cout << "false" << endl;
}
return 0;
}
// 64 位输出请用 printf("%lld")



京公网安备 11010502036488号