lines = [] with open("1.input") as f: for line in f.readlines(): lines.append(int(line)) for l1 in lines: for l2 in lines: if l1 + l2 == 2020: print(l1 * l2)