def read_numbers(number_file, query_file):
    """
    Parameters
    ----------
    number_file : str
    query_file : str

    Returns
    -------
    tuple
        (numbers, queries) - both are lists
    """
    with open(number_file) as f:
        numbers = list(map(int, f.read().split(" ")))

    with open(query_file) as f:
        queries = list(map(lambda s: list(map(int, s.split(":"))),
                       f.read().split("\n")))

    return numbers, queries