string1 = raw_input("输入in之前的字符:")
string2 = raw_input("输入in之后的字符:")
x = ''
if len(string1) > len(string2) or len(string2) == 0:
print 'false'
else:
for a in range(len(string2)):
if string2[0:a+1].count(string1) > 0:
x = 'true'
break
else:
x = 'false'
print x