#include <stdio.h>
#include <string.h>
//暴力遍历
//用简单哈希表,字符一共128个对应ASCII 0-127
int main()
{
char s[201], t[201];
while (scanf("%s", s) != EOF)
{
scanf("%s", t);
int lens, lent;
lens = strlen(s), lent = strlen(t);
int hash[128] = {0};
int count = 0; //出现字符数
for (int i = 0; i < lent; i++)
{
hash[t[i]]++;
}
for (int i = 0; i < lens; i++)
{
if (hash[s[i]])
count++;
}
if (count == lens)
{
printf("true\n");
}
else
{
printf("false\n");
}
}
return 0;
}