def read_file(filename):
    """
    Read input file and save the locations into a list.
    :param filename: input file
    :return: list of locations
    """
    locations = []
    with open(filename, 'r', encoding='UTF-8') as file:
        for line in file:
            locations.append([[int(location), False, False] for location in line.strip()])
    return locations