while True:
    try:
        S = input()
        L = input()
        c = 0
        for i in S:
            if i in L:  # 开始出现的字母后面还可能出现,
                c += 1  # 因此要用包含而不是等于来判断。
        if c == len(S):
            print("true")
        else:
            print("false")
    except:
        break