while True: try: S, T = input(), input() if set(S) & set(T) == set(S): print('true') else: print('false') except: break