import sys records = [] dic = dict() for line in sys.stdin: file_and_line = line.split("\\")[-1].split(" ") address = file_and_line[0][-16:] # last 16 characters  ...