eDict = {} eList = [] msg = input() while msg != '': path, line = msg.split() file, line = path.split('\\')[-1][-16:], int(line) if (file, line) not in eList: eList.append((file, line)) eDict[(file,line)] = eDict.get((file,line), 0) + 1 try: msg = input() except: msg = '' for e in eList[-8:]: print(...