while True: try: S = input() T = input() if set(S) & set(T) == set(S): # 集合的交集 print('true') else: print('false') except: break