while True: try: short_list = list(input()) long_list = list(input()) for each_char in short_list: if each_char not in long_list: print("false") break else: print("true") except EOFError: break
while True: try: short_list = list(input()) long_list = list(input()) for each_char in short_list: if each_char not in long_list: print("false") break else: print("true") except EOFError: break