import sys N = int(sys.stdin.readline()) wordList = list() count = 0 for i in range(N): wordList.append((str(sys.stdin.readline().rstrip())) def groupWord(w: str)