while True: try: S = input() T = input() flag = True for ch in S: if ch not in T: flag = False break print("true" if flag else "false") except: break