class solution: # def my_input(self): # n = int(input()) # words = [] # for i in range(n): # words.append(input()) #  ...