m,s = input().lower(),input().lower() def is_pipei(m,s): if m == '' and s == '': return True elif m == '' and s != '': return False elif m != '' and s == '': if m == "*": return True else: return False else: if m[-1] == ...