def load_lists(): list_1 = [] list_2 = [] with open('./input.txt', 'r') as reader: for l in reader: ids = l.split(' ') list_1.append(int(ids[0])) list_2.append(int(ids[1])) list_1.sort() list_2.sort() return list_1, list_2