la = [] d = {} while True: try: ss = input().split() a = (ss[0].split('\\')[-1][-16:],ss[1]) ...